Skip to content

Commit fa8ce62

Browse files
Briefly describe differences between two approaches
1 parent e4fc49c commit fa8ce62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/csharp/asynchronous-programming/start-multiple-async-tasks-and-process-them-as-they-complete.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,8 @@ with the simplified `await foreach`:
192192
}
193193
```
194194

195+
This new approach allows to no longer repeatedly call `Task.WhenAny` to manually call a task and remove the one that finishes, because `Task.WhenEach` iterates through task *in an order of their completion*.
196+
195197
## Complete example
196198

197199
The following code is the complete text of the *Program.cs* file for the example.

0 commit comments

Comments
 (0)