What's Changed
- feat(pool): add option to bound task queue (v2) by @alitto in #99
- Add support to create bounded pools by specifying a queue size (
WithQueueSize
option). - Add support to choose how to deal with tasks submitted when the queue is full (
WithNonBlocking
option). - 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: v2.1.6...v2.2.0