GetAwaiter Method
Collapse the table of content
Expand the table of content

Task(Of TResult).GetAwaiter Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets an awaiter used to await this Task(Of TResult).

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

'Declaration
Public Function GetAwaiter As TaskAwaiter(Of TResult)

Return Value

Type: System.Runtime.CompilerServices.TaskAwaiter(Of TResult)
An awaiter instance.

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

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft