IVsTaskSchedulerService.CreateTaskCompletionSourceEx(UInt32, Object) Method

Definition

Creates a task completion source instance with the specified options.

public:
 Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ CreateTaskCompletionSourceEx(System::UInt32 options, System::Object ^ AsyncState);
public:
 Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ CreateTaskCompletionSourceEx(unsigned int options, Platform::Object ^ AsyncState);
Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource CreateTaskCompletionSourceEx(unsigned int options, winrt::Windows::Foundation::IInspectable const & AsyncState);
public Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource CreateTaskCompletionSourceEx (uint options, object AsyncState);
abstract member CreateTaskCompletionSourceEx : uint32 * obj -> Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource
Public Function CreateTaskCompletionSourceEx (options As UInteger, AsyncState As Object) As IVsTaskCompletionSource

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