Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor refactor on Thread pool (#1088)
* Move shutdown grace time constant to ThreadPool. SHUTDOWN_GRACE_TIME is the only constant (from const.rb) used by ThreadPool. It's better to move the constant than require all const.rb. * Fix minor typo. * Don't need to check if timeout is zero to immediately shutdown. This removes the duplicated code and add test for forced shutdowns.
- Loading branch information
1 parent
13ac97f
commit 64f930d
Showing
3 changed files
with
27 additions
and
17 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