Created
January 28, 2023 04:54
-
-
Save Ershad95/db78afb43958c37142dcce538e044358 to your computer and use it in GitHub Desktop.
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
static async IAsyncEnumerable<int> RangeAsync(int start, int count) | |
{ | |
for (int i = 0; i < count; i++) | |
{ | |
await Task.Delay(i); | |
yield return start + i; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment