JoinableTaskFactory.MainThreadAwaitable Struct

Definition

An awaitable struct that facilitates an asynchronous transition to the Main thread.

C++/WinRT
struct JoinableTaskFactory::MainThreadAwaitable
Inheritance
JoinableTaskFactory.MainThreadAwaitable
Attributes

Methods

GetAwaiter()

Gets the awaiter.

NoThrowAwaitable()

Returns an awaitable for the specified SwitchToMainThreadAsync(CancellationToken) operation that will not throw an exception if cancellation is requested.

Applies to

Tuote Versiot
Visual Studio SDK 2015, 2017, 2019, 2022

Thread Safety

This type is thread-safe for all members.