Created
October 14, 2020 08:37
-
-
Save stevejgordon/e232d3ef516da20fe92bb584f5efa0d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if (!cancellationToken.CanBeCanceled) | |
{ | |
AsyncOperation<bool> singleton = _waiterSingleton; | |
if (singleton.TryOwnAndReset()) | |
{ | |
ChannelUtilities.QueueWaiter(ref parent._waitingReadersTail, singleton); | |
return singleton.ValueTaskOfT; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment