Share via


JoinableTaskFactory.MainThreadAwaitable Struct

Definition

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

public: value class JoinableTaskFactory::MainThreadAwaitable
struct JoinableTaskFactory::MainThreadAwaitable
public struct JoinableTaskFactory.MainThreadAwaitable
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct JoinableTaskFactory.MainThreadAwaitable
type JoinableTaskFactory.MainThreadAwaitable = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type JoinableTaskFactory.MainThreadAwaitable = struct
Public Structure 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

Thread Safety

This type is thread-safe for all members.