JoinableTaskFactory.MainThreadAwaitable Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.