C-DEngine 5.105

TheCommonUtils..::..cdeRunAsync Method (String, Boolean, cdeWaitCallback, Object)

Runs code asynchronously without waiting for the result.

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

Syntax


public static bool cdeRunAsync(
	string pThreadName,
	bool TrapExceptions,
	TheCommonUtils..::..cdeWaitCallback callBack,
	Object pState
)
Public Shared Function cdeRunAsync ( _
	pThreadName As String, _
	TrapExceptions As Boolean, _
	callBack As TheCommonUtils..::..cdeWaitCallback, _
	pState As Object _
) As Boolean
public:
static bool^ cdeRunAsync(
	String^ pThreadName, 
	bool^ TrapExceptions, 
	TheCommonUtils..::..cdeWaitCallback^ callBack, 
	Object^ pState
)

Parameters

pThreadName
Type: String
Thread name (to assist in debugging).
TrapExceptions
Type: Boolean
The Callback Code will be encapsulated in a Try/Catch block.
callBack
Type: nsCDEngine.BaseClasses..::..TheCommonUtils..::..cdeWaitCallback
Code to execute.
pState
Type: Object
Initial state to pass to callback function (optional).

Return Value

True when task successfully created.