-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Task.WaitAsync in SemaphoreSlim.WaitAsync (#55262)
* Use Task.WaitAsync in SemaphoreSlim * Fix failing test The Cancel_WaitAsync_ContinuationInvokedAsynchronously test was failing, highlighting that we were no longer invoking the continuation asynchronously from the Cancel call. But in fact we were incompletely doing so in the past, such that we'd only force that asynchrony if no timeout was provided... if both a timeout and a token were provided, then we wouldn't. I've enhanced the test to validate both cases, and made sure we now pass.
- Loading branch information
1 parent
7f88911
commit e30c200
Showing
3 changed files
with
56 additions
and
29 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