Starts this Task when the other Task ended successfully.

Namespace: UnityThreading
Assembly: UnityThreading (in UnityThreading.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static Task Await(
	this Task that,
	Task taskToWaitFor,
	DispatcherBase target
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Await ( _
	that As Task, _
	taskToWaitFor As Task, _
	target As DispatcherBase _
) As Task
Visual C++
[ExtensionAttribute]
public:
static Task^ Await(
	Task^ that, 
	Task^ taskToWaitFor, 
	DispatcherBase^ target
)

Parameters

that
Type: UnityThreading..::..Task
taskToWaitFor
Type: UnityThreading..::..Task
target
Type: UnityThreading..::..DispatcherBase
The DispatcherBase to start this task on.

Return Value

This task.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Task. When you use instance method syntax to call this method, omit the first parameter. For more information, see or .

See Also