-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pool): add option to bound task queue (v2) (#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.
- Loading branch information
Showing
21 changed files
with
673 additions
and
937 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.