TheCommonUtils..::..cdeRunTaskAsync Method
Runs code asynchronously and lets the caller wait for the code to finish
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Syntax
public static Task cdeRunTaskAsync( string pThreadName, TheCommonUtils..::..cdeWaitCallback callBack, Object pState, bool longRunning )
Public Shared Function cdeRunTaskAsync ( _ pThreadName As String, _ callBack As TheCommonUtils..::..cdeWaitCallback, _ pState As Object, _ longRunning As Boolean _ ) As Task
public: static Task^ cdeRunTaskAsync( String^ pThreadName, TheCommonUtils..::..cdeWaitCallback^ callBack, Object^ pState, bool^ longRunning )
Parameters
- pThreadName
- Type: String
Thread name (to assist in debugging).
- callBack
- Type: nsCDEngine.BaseClasses..::..TheCommonUtils..::..cdeWaitCallback
Code to execute.
- pState
- Type: Object
Initializer to pass to callback function.
- longRunning
- Type: Boolean
Hint for scheduler about nature of task.