-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Small tidy-up in TaskCancellationService (#92795)
We use a fixed-size `CountDownActionListener` here to wait for each of 3 actions to complete, but two of the three actions cannot fail and the result completes a `StepListener` so we can just use a `RefCountingRunnable` instead. Also we can just use `StepListener#addListener` a little further down instead of passing the same runnable in two different arguments.
- Loading branch information
1 parent
8477b4e
commit f77ce8b
Showing
1 changed file
with
31 additions
and
18 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