LANGUAGE
await
Obtains the result of an awaitable operation and can suspend an async method until completion.
Formal Syntax & Structure
csharp syntaxcsharp
await expressionWorking Example
Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.int value = await Task.FromResult(3);