Go Async-Group
Go Async Group can be more easily manage goroutine.

errgroup has the goal is to cancel all asynchronous when at least one async fails.
This package is used to wait until all the executed asynchronous processing is finished.
Synopsis
func main() {
var ag async.Group
var sum, expected uint32
for i := 0; i < times; i++ {
expected++
ag.Go(func() {
atomic.AddUint32(&sum, 1)
})
}
ag.Wait()
fmt.Println(sum, expected)
}
If you want to use at your application, see example.
Installation
go get -u github.com/Code-Hex/go-async
Contribution
- Fork https://github.com/Code-Hex/go-async/fork
- Commit your changes
- Create a new Pull Request
I'm waiting for a lot of PR.
Author
codehex