Skip to content

Instantly share code, notes, and snippets.

@stevejgordon
Created October 14, 2020 08:29
Show Gist options
  • Save stevejgordon/ddffabe4276e31ac7b3395f04cd4219e to your computer and use it in GitHub Desktop.
Save stevejgordon/ddffabe4276e31ac7b3395f04cd4219e to your computer and use it in GitHub Desktop.
if (!cancellationToken.CanBeCanceled)
{
AsyncOperation<T> singleton = _readerSingleton;
if (singleton.TryOwnAndReset())
{
parent._blockedReaders.EnqueueTail(singleton);
return singleton.ValueTaskOfT;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment