VsTaskLibraryHelper::CompleteAfterTask<T> Method (IVsTaskCompletionSource^, Task<T>^)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
public: generic<typename T> [ExtensionAttribute] static void CompleteAfterTask( IVsTaskCompletionSource^ taskCompletionSource, Task<T>^ task )
Parameters
- taskCompletionSource
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsTaskCompletionSource^
The task completion source that is set after the task is completed
- task
-
Type:
System.Threading.Tasks::Task<T>^
The task that is used to set the state of the task completion source.
Type Parameters
- T
The return type of the task.
Show: