Waiting for Many Tasks: Task.WhenAll and Task.WhenAny
Start several tasks before awaiting any of them, then wait for them all with Task.WhenAll, which takes about as long as the slowest, or for the first to finish with Task.WhenAny, which can also race slow work against a timer.
Updated

- Category
- C#
- Level
- Journeyman
- Tags
- Async/Await, c-sharp, Task (c-sharp), Task.WhenAll, Task.WhenAny