Share via


JoinableTaskFactory.MainThreadAwaitable.NoThrowAwaitable Method

Definition

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

public Microsoft.VisualStudio.Threading.JoinableTaskFactory.MainThreadAwaitable NoThrowAwaitable ();
member this.NoThrowAwaitable : unit -> Microsoft.VisualStudio.Threading.JoinableTaskFactory.MainThreadAwaitable
Public Function NoThrowAwaitable () As JoinableTaskFactory.MainThreadAwaitable

Returns

An awaitable.

Applies to