Skip to content

Glossary: C# Beyond the Basics

Task.WhenAll

Also written: Task.WhenAny, WhenAll, WhenAny

`WhenAll` finishes when every task has, and returns their results in the order you passed them. `WhenAny` finishes as soon as the first task does. Starting tasks together and using `WhenAll` runs them at once.

Where the book teaches it

Related terms

Taskasync