UIContext.GetAwaiter Method

Definition

Method that enables UIContexts going to true (activated) to be awaited on. The awaiter resumes the caller on the same context, i.e., If the caller was on the UI thread when awaited, the code after the await would resume on the UI thread.

public:
 System::Runtime::CompilerServices::TaskAwaiter GetAwaiter();
public System.Runtime.CompilerServices.TaskAwaiter GetAwaiter ();
member this.GetAwaiter : unit -> System.Runtime.CompilerServices.TaskAwaiter
Public Function GetAwaiter () As TaskAwaiter

Returns

A task awaiter.

Applies to