TYPE

Task

Represents an operation with observable completion; generic tasks carry a result on success.

Formal Syntax & Structure

csharp syntaxcsharp
Task / Task<T>

Working Example

Example Snippetcsharp
// Documentary fragment; see lesson for context and imports.Task<int> work = Task.FromResult(3);
C# & .NET Reference