System.Threading.Tasks.Task<TResult>.GetAwaiter Method

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

Syntax

public System.Runtime.CompilerServices.TaskAwaiter<TResult> 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