Last active
April 19, 2020 05:58
-
-
Save masaab/be1e4f30774eb59987d3d5de78da6d5e to your computer and use it in GitHub Desktop.
serving bread the yemeni way
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
| public async IAsyncEnumerable<int> GetBreadYemeniWayAsync(int numberOfBreads) | |
| { | |
| for (int i = 1; i <= numberOfBreads; i++) | |
| { | |
| Console.WriteLine($"Baking Yemeni Bread:{i}"); | |
| await Task.Delay(1000); | |
| yield return i; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment