JoinableTaskFactory.MainThreadAwaitable Struct
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
C++/WinRT
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
Get |
Gets the awaiter. |
No |
Returns an awaitable for the specified SwitchToMainThreadAsync(CancellationToken) operation that will not throw an exception if cancellation is requested. |
Tuote | Versiot |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |
This type is thread-safe for all members.