C-DEngine 5.105

TheCommonUtils..::..cdeRunTaskChainAsync Method

Runs a sequence of asynchronous tasks (task continuations or a method that uses the C# async keyword) and lets the caller wait for the entire chain to finish. The call returns immediately and not when the first continuation is hit.

Namespace:  nsCDEngine.BaseClasses
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static Task cdeRunTaskChainAsync(
	string pThreadName,
	Func<Object, Task> callBack,
	Object pState,
	bool longRunning
)
Public Shared Function cdeRunTaskChainAsync ( _
	pThreadName As String, _
	callBack As Func(Of Object, Task), _
	pState As Object, _
	longRunning As Boolean _
) As Task
public:
static Task^ cdeRunTaskChainAsync(
	String^ pThreadName, 
	Func<Object^, Task^>^ callBack, 
	Object^ pState, 
	bool^ longRunning
)

Parameters

pThreadName
Type: String
callBack
Type: Func<(Of <(<'Object, Task>)>)>
pState
Type: Object
longRunning
Type: Boolean

Return Value