TheCommonUtils..::..TaskWaitTimeout Method (Task, TimeSpan, Nullable<(Of <(<'CancellationToken>)>)>)
Returns a task that completes when the task completes or a timeout occurrs.
Namespace:
nsCDEngine.BaseClassesAssembly: C-DEngine (in C-DEngine.dll)
Syntax
Parameters
- task
- Type: Task
Task to be timed out.
- timeout
- Type: TimeSpan
Timeout interval.
- cancelToken
- Type: Nullable<(Of <(<'CancellationToken>)>)>
Cancel token for the task