Delen via


JoinableTask<T>.GetAwaiter Method

Gets an awaiter that is equivalent to calling JoinAsync.

Namespace:  Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

Syntax

'Declaration
Public Function GetAwaiter As TaskAwaiter(Of T)
public TaskAwaiter<T> GetAwaiter()
public:
TaskAwaiter<T> GetAwaiter()
member GetAwaiter : unit -> TaskAwaiter<'T> 
public function GetAwaiter() : TaskAwaiter<T>

Return Value

Type: System.Runtime.CompilerServices.TaskAwaiter<T>
Returns TaskAwaiter<TResult>.

.NET Framework Security

See Also

Reference

JoinableTask<T> Class

Microsoft.VisualStudio.Threading Namespace