diff --git a/common/signal/exec.go b/common/signal/exec.go index dc6cffcdb..2a82c5236 100644 --- a/common/signal/exec.go +++ b/common/signal/exec.go @@ -12,6 +12,7 @@ func executeAndFulfill(f func() error, done chan<- error) { close(done) } +// ExecuteAsync executes a function asychrously and return its result. func ExecuteAsync(f func() error) <-chan error { done := make(chan error, 1) go executeAndFulfill(f, done)