What's Changed
- feat(pool): add option to bound task queue (v2) by @alitto in https://github.com/alitto/pond/pull/99
- Add support to create bounded pools by specifying a queue size (
WithQueueSizeoption). - Add support to choose how to deal with tasks submitted when the queue is full (
WithNonBlockingoption). - Ensure
RunningWorkers()method in subpools reflect the actual number of workers running tasks belonging to the subpool. - Allow overriding pool options when creating a subpool via
NewSupool. - Simplify pool submission logic and remove dispatcher goroutine.
- Simplify subpool implementation.
- Add support to create bounded pools by specifying a queue size (
Full Changelog: https://github.com/alitto/pond/compare/v2.1.6...v2.2.0