diff --git a/dotnet/Program.cs b/dotnet/Program.cs index 2d556de..8d95d8c 100644 --- a/dotnet/Program.cs +++ b/dotnet/Program.cs @@ -14,12 +14,7 @@ static async Task Main(string[] args) for (int i = 0; i < numTasks; i++) { - Task task = Task.Run(async () => - { - await Task.Delay(TimeSpan.FromSeconds(10)); - }); - - tasks.Add(task); + tasks.add(Task.Delay(TimeSpan.FromSeconds(10))); } await Task.WhenAll(tasks);