An open API service indexing awesome lists of open source software.

https://github.com/linka-cloud/errgroup


https://github.com/linka-cloud/errgroup

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# errgroup

Adapted from [golang.org/x/sync/errgroup](https://godoc.org/golang.org/x/sync/errgroup).

## API

```go
type Group interface {
Go(f func(ctx context.Context) error)
TryGo(f func(ctx context.Context) error) bool
SetLimit(n int)
Cancel() error
Done() <-chan struct{}
Wait() error
}

func New(ctx context.Context) Group
```