Struct TplExtensions.NoThrowValueTaskAwaitable
- Namespace
- Microsoft.VisualStudio.Threading
- Assembly
- Microsoft.VisualStudio.Threading.dll
An awaitable that wraps a task and never throws an exception when waited on.
public readonly struct TplExtensions.NoThrowValueTaskAwaitable
- Inherited Members
Constructors
NoThrowValueTaskAwaitable(ValueTask, bool)
Initializes a new instance of the TplExtensions.NoThrowValueTaskAwaitable struct.
public NoThrowValueTaskAwaitable(ValueTask task, bool captureContext)
Parameters
task
ValueTaskThe task.
captureContext
boolWhether the continuation should be scheduled on the current sync context.
Methods
GetAwaiter()
Gets the awaiter.
public TplExtensions.NoThrowValueTaskAwaiter GetAwaiter()
Returns
- TplExtensions.NoThrowValueTaskAwaiter
The awaiter.