https://github.com/linka-cloud/errgroup
https://github.com/linka-cloud/errgroup
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/linka-cloud/errgroup
- Owner: linka-cloud
- License: bsd-3-clause
- Created: 2022-11-10T20:25:24.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T20:31:55.000Z (over 2 years ago)
- Last Synced: 2024-12-30T07:21:58.689Z (5 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```