Export (0) Print
Expand All

Task<TResult>.GetAwaiter Method

.NET Framework 4.6 and 4.5

Gets an awaiter used to await this Task<TResult>.

Namespace:  System.Threading.Tasks
Assemblies:   System.Threading.Tasks (in System.Threading.Tasks.dll)
  mscorlib (in mscorlib.dll)

public TaskAwaiter<TResult> GetAwaiter()

Return Value

Type: System.Runtime.CompilerServices.TaskAwaiter<TResult>
An awaiter instance.

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

.NET Framework

Supported in: 4.6, 4.5

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft