IVsTaskSchedulerService.CreateTaskCompletionSourceEx(UInt32, Object) Method

Definition

Creates a task completion source instance with the specified options.

C#
public Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource CreateTaskCompletionSourceEx(uint options, object AsyncState);

Parameters

options
UInt32

[in] Task creation options for the task controlled by the completion source.

AsyncState
Object

[in] Asynchronous state that will be stored by the task controlled by the completion source.

Returns

The task completion source instance.

Remarks

This method is safe to access from any thread.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022