TheCommonUtils..::..TaskWaitCancel Method
Returns a task that completes when the task completes or the cancelToken was canceled.
Note that the underlying task will NOT be canceled, only the await/Wait for the returned task will be canceled.
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Syntax
Parameters
- task
- Type: Task
Task to waited for.
- cancelToken
- Type: CancellationToken
CancellationToken to be observed while waiting for the task.