TplExtensions Methods

 

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAppendAction(Task^, Action^, TaskContinuationOptions, CancellationToken)

Schedules some action for execution at the conclusion of a task.

System_CAPS_pubmethodSystem_CAPS_staticApplyResultTo<T>(Task^, TaskCompletionSource<T>^)

Applies one task's results to another.

System_CAPS_pubmethodSystem_CAPS_staticApplyResultTo<T>(Task<T>^, TaskCompletionSource<T>^)

Applies one task's results to another.

System_CAPS_pubmethodSystem_CAPS_staticAttachToParent(Task^)

Creates a task that is attached to the parent task, but produces the same result as an existing task.

System_CAPS_pubmethodSystem_CAPS_staticAttachToParent<T>(Task<T>^)

Creates a task that is attached to the parent task, but produces the same result as an existing task.

System_CAPS_pubmethodSystem_CAPS_staticFollowCancelableTaskToCompletion<T>(Func<Task<T>^>^, CancellationToken, TaskCompletionSource<T>^)

Gets a task that will eventually produce the result of another task, when that task finishes. If that task is instead canceled, its successor will be followed for its result, iteratively.

System_CAPS_pubmethodSystem_CAPS_staticForget(Task^)

Consumes a task and doesn't do anything with it. Useful for fire-and-forget calls to asynchronous methods within asynchronous methods.

System_CAPS_pubmethodSystem_CAPS_staticInvokeAsync(AsyncEventHandler^, Object^, EventArgs^)

Invokes asynchronous event handlers, returning a task that completes when all event handlers have been invoked. Each handler is fully executed (including continuations) before the next handler in the list is invoked.

System_CAPS_pubmethodSystem_CAPS_staticInvokeAsync<TEventArgs>(AsyncEventHandler<TEventArgs>^, Object^, TEventArgs)

Invokes asynchronous event handlers, returning a task that completes when all event handlers have been invoked. Each handler is fully executed (including continuations) before the next handler in the list is invoked.

System_CAPS_pubmethodSystem_CAPS_staticNoThrowAwaitable(Task^, Boolean)

Returns an awaitable for the specified task that will never throw, even if the source task faults or is canceled.

System_CAPS_pubmethodSystem_CAPS_staticToApm(Task^, AsyncCallback^, Object^)

Converts a TPL task to the Asynchronous Programming Model (APM) Begin-End pattern.

System_CAPS_pubmethodSystem_CAPS_staticToApm<TResult>(Task<TResult>^, AsyncCallback^, Object^)

Converts a TPL task to the Asynchronous Programming Model (APM) Begin-End pattern.

System_CAPS_pubmethodSystem_CAPS_staticWaitWithoutInlining(Task^)

Wait on a task without possibly inlining it to the current thread.

Return to top
Show: