METHOD
Task.WhenAll
Coordinates completion of every supplied task; successful generic results preserve input order.
Formal Syntax & Structure
csharp syntaxcsharp
Task.WhenAll(tasks)Working Example
Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.int[] results = await Task.WhenAll(stock.Task, price.Task);