Compartir a través de


TplExtensions.ApplyResultTo Method

Definition

Overloads

ApplyResultTo<T>(Task, TaskCompletionSource<T>)

Applies one task's results to another.

ApplyResultTo<T>(Task<T>, TaskCompletionSource<T>)

Applies one task's results to another.

ApplyResultTo<T>(Task, TaskCompletionSource<T>)

Applies one task's results to another.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void ApplyResultTo(System::Threading::Tasks::Task ^ task, System::Threading::Tasks::TaskCompletionSource<T> ^ tcs);
public static void ApplyResultTo<T> (this System.Threading.Tasks.Task task, System.Threading.Tasks.TaskCompletionSource<T> tcs);
static member ApplyResultTo : System.Threading.Tasks.Task * System.Threading.Tasks.TaskCompletionSource<'T> -> unit
<Extension()>
Public Sub ApplyResultTo(Of T) (task As Task, tcs As TaskCompletionSource(Of T))

Type Parameters

T

The type of value returned by a task.

Parameters

task
Task

The task whose completion should be applied to another.

tcs
TaskCompletionSource<T>

The task that should receive the completion status.

Applies to

ApplyResultTo<T>(Task<T>, TaskCompletionSource<T>)

Applies one task's results to another.

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void ApplyResultTo(System::Threading::Tasks::Task<T> ^ task, System::Threading::Tasks::TaskCompletionSource<T> ^ tcs);
public static void ApplyResultTo<T> (this System.Threading.Tasks.Task<T> task, System.Threading.Tasks.TaskCompletionSource<T> tcs);
static member ApplyResultTo : System.Threading.Tasks.Task<'T> * System.Threading.Tasks.TaskCompletionSource<'T> -> unit
<Extension()>
Public Sub ApplyResultTo(Of T) (task As Task(Of T), tcs As TaskCompletionSource(Of T))

Type Parameters

T

The type of value returned by a task.

Parameters

task
Task<T>

The task whose completion should be applied to another.

tcs
TaskCompletionSource<T>

The task that should receive the completion status.

Applies to