4 ms·
ErrGroup is nice, but it was created before contexts existed, and doesn't have support for cancellation. I have a bounded worker pool executor that handles canc
by atombender 9y ago
ErrGroup is nice, but it was created before contexts existed, and doesn't have support for cancellation. I have a bounded worker pool executor that handles cancellation that I'm currently extracting from a private project; shout out if interested.
- lclarkmichalek 9y agoThe errgroup I linked has a single constructor `WithContext(ctx.Context) (*Group, context.Context)`. I think you might be thinking of the stdlib's sync.ErrGroup :)
- atombender 9y agoOops, I didn't realize that. Thanks. Mine implementation supports a bounded (max concurrency) mode, though!