Partilhar via


JoinableTask<T>.GetAwaiter Method

Definition

Gets an awaiter that is equivalent to calling JoinAsync(CancellationToken).

public:
 System::Runtime::CompilerServices::TaskAwaiter<T> GetAwaiter();
public System.Runtime.CompilerServices.TaskAwaiter<T> GetAwaiter ();
override this.GetAwaiter : unit -> System.Runtime.CompilerServices.TaskAwaiter<'T>
Public Function GetAwaiter () As TaskAwaiter(Of T)

Returns

A task whose result is the result of the asynchronous operation.

Applies to