Starts the Enumerator as async Task on the given TaskDistributor.

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

Syntax

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

Parameters

that
Type: System.Collections..::..IEnumerator
target
Type: UnityThreading..::..TaskDistributor
The TaskDistributor instance on which the operation should perform.

Return Value

The task.

Usage Note

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

See Also