Darien Raymond 8 rokov pred
rodič
commit
a944df2f9b
1 zmenil súbory, kde vykonal 1 pridanie a 0 odobranie
  1. 1 0
      common/signal/exec.go

+ 1 - 0
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)