Created
October 14, 2020 08:34
-
-
Save stevejgordon/c98b4df6bae4d4a993cd87277bb7e271 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.IsCancellationRequested) | |
{ | |
return new ValueTask<bool>(Task.FromCanceled<bool>(cancellationToken)); | |
} | |
if (!_parent._items.IsEmpty) | |
{ | |
return new ValueTask<bool>(true); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment