Skip to content

Commit

Permalink
Create Support2AsyncStreams.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
RexJaeschke authored Feb 7, 2023
1 parent 81ed1ef commit 4b81f71
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/example-templates/additional-files/Support2AsyncStreams.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
partial class Class1
{
static async Task Main()
{
await M();
await Task.Delay(2000);
}

static async Task M()
{
await foreach (var number in GenerateSequence())
{
Console.WriteLine(number);
}
}
}

0 comments on commit 4b81f71

Please sign in to comment.