IVsTaskSchedulerService.CreateTaskCompletionSourceEx(UInt32, Object) Method
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.
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.