Documentation
¶
Overview ¶
Package waiter provides a nice way to perform return-less parallel operations
Example:
func DoThreeThingsParallel() error { w := waiter.New(3) go func () { // do something if err != nil { w.Errors <- err } // done w.Done <- true }() go func () { err := doSomethingElse() w.Wrap(err) // Takes care of errors and done channels }() w.Close(CloserInterface) return w.wait() }
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.