Struct JoinableTaskFactory.MainThreadAwaitable
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
An awaitable struct that facilitates an asynchronous transition to the Main thread.
public readonly struct JoinableTaskFactory.MainThreadAwaitable
- Inherited Members
Methods
GetAwaiter()
Gets the awaiter.
public JoinableTaskFactory.MainThreadAwaiter GetAwaiter()
Returns
NoThrowAwaitable()
Returns an awaitable for the specified SwitchToMainThreadAsync(CancellationToken) operation that will not throw an exception if cancellation is requested.
public JoinableTaskFactory.MainThreadAwaitable NoThrowAwaitable()
Returns
- JoinableTaskFactory.MainThreadAwaitable
An awaitable.