Compartir a través de


VsTaskLibraryHelper.CompleteAfterTask<T> Method

Definition

Sets a continuation on the task passed in so that task completion source is set to correct state after the task is completed/faulted or canceled.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void CompleteAfterTask(Microsoft::VisualStudio::Shell::Interop::IVsTaskCompletionSource ^ taskCompletionSource, System::Threading::Tasks::Task<T> ^ task);
public static void CompleteAfterTask<T> (this Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource taskCompletionSource, System.Threading.Tasks.Task<T> task);
static member CompleteAfterTask : Microsoft.VisualStudio.Shell.Interop.IVsTaskCompletionSource * System.Threading.Tasks.Task<'T> -> unit
<Extension()>
Public Sub CompleteAfterTask(Of T) (taskCompletionSource As IVsTaskCompletionSource, task As Task(Of T))

Type Parameters

T

Return type of the task.

Parameters

taskCompletionSource
IVsTaskCompletionSource

Task completion source that will be set once the task is completed.

task
Task<T>

Task that will be used to set the state of the task completion source.

Applies to