TplExtensions.NoThrowValueTaskAwaitable<TResult> Constructor
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.
Initializes a new instance of the TplExtensions.NoThrowValueTaskAwaitable<TResult> struct.
public NoThrowValueTaskAwaitable (System.Threading.Tasks.ValueTask<TResult> task, bool captureContext);
new Microsoft.VisualStudio.Threading.TplExtensions.NoThrowValueTaskAwaitable<'Result> : System.Threading.Tasks.ValueTask<'Result> * bool -> Microsoft.VisualStudio.Threading.TplExtensions.NoThrowValueTaskAwaitable<'Result>
Public Sub New (task As ValueTask(Of TResult), captureContext As Boolean)
Parameters
- task
- ValueTask<TResult>
The task.
- captureContext
- Boolean
Whether the continuation should be scheduled on the current sync context.