TplExtensions.NoThrowTaskAwaitable(Task, Boolean) 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.NoThrowTaskAwaitable struct.
public:
NoThrowTaskAwaitable(System::Threading::Tasks::Task ^ task, bool captureContext);
public NoThrowTaskAwaitable (System.Threading.Tasks.Task task, bool captureContext);
new Microsoft.VisualStudio.Threading.TplExtensions.NoThrowTaskAwaitable : System.Threading.Tasks.Task * bool -> Microsoft.VisualStudio.Threading.TplExtensions.NoThrowTaskAwaitable
Public Sub New (task As Task, captureContext As Boolean)
Parameters
- task
- Task
The task.
- captureContext
- Boolean
Whether the continuation should be scheduled on the current sync context.