-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pool): introduce
draining
state to account for late ops
Sometime we request operations as fire-and-forget right before the pool is destroyed (`endSessions` is a good example). In a graceful destruction the pool still needs to account for these operations, so a new state `draining` was introduced to prevent new operations while allowing the pool to drain existing queued work.
- Loading branch information
Showing
1 changed file
with
27 additions
and
21 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