TplExtensions::ApplyResultTo<T> Method (Task^, TaskCompletionSource<T>^)

 

Applies one task's results to another.

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

public:
generic<typename T>
[ExtensionAttribute]
static void ApplyResultTo(
	Task^ task,
	TaskCompletionSource<T>^ tcs
)

Parameters

task
Type: System.Threading.Tasks::Task^

The task whose completion should be applied to another.

tcs
Type: System.Threading.Tasks::TaskCompletionSource<T>^

The task that should receive the completion status.

Type Parameters

T

The type of value returned by a task.

Return to top
Show: