Skip to content

Commit

Permalink
Update AsyncAwaitTest.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
liiir1985 committed Jun 8, 2020
1 parent 1742b42 commit bbacfc9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions TestCases/AsyncAwaitTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ await Task.Run<int>(() =>
});
Console.WriteLine($"TestRunSub1 complete");
}
public async static Task TestRun4()
{
Console.WriteLine("Load 1");
await TestLoad("Load 1 complete");
Console.WriteLine("Load 2");
await TestLoad("Load 2 complete");
Console.WriteLine("Load 3");
await TestLoad("Load 3 complete");

}
static async Task TestLoad(string msg)
{
await Task.Delay(1000);
Console.WriteLine(msg);
}

public static async Task<int> TestRun2()
{
Expand Down

0 comments on commit bbacfc9

Please sign in to comment.