VsInvokableAsyncFunction<T> Delegate
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.
Used by the asynchronous task library helper to take an IVsTaskCompletionSource and return a Task Parallel Library (TPL) task.
generic <typename T>
public delegate System::Threading::Tasks::Task<T> ^ VsInvokableAsyncFunction(IVsTaskCompletionSource ^ tcs);
public delegate System.Threading.Tasks.Task<T> VsInvokableAsyncFunction<T>(IVsTaskCompletionSource tcs);
type VsInvokableAsyncFunction<'T> = delegate of IVsTaskCompletionSource -> Task<'T>
Public Delegate Function VsInvokableAsyncFunction(Of T)(tcs As IVsTaskCompletionSource) As Task(Of T)
Type Parameters
- T
The type of the result produced by this task.
Parameters
The task completion source.
Return Value
The task.
Remarks
This delegate converts a returning System.Threading.Tasks.Task
function to return an IVsTask instead. The delegate is provided by the caller and is used to return the System.Threading.Tasks.Task instance that would be converted to IVsTask
.