System.Threading.Tasks.Task.GetAwaiter Method

Gets an awaiter used to await this System.Threading.Tasks.Task.

Syntax

public System.Runtime.CompilerServices.TaskAwaiter GetAwaiter ()

Returns

An awaiter instance.

Remarks

This method is intended for compiler user rather than use directly in code.

Requirements

Namespace: System.Threading.Tasks
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0