C-DEngine 5.105

TheCommonUtils..::..TaskWaitTimeout Method (Task, TimeSpan)

Returns a task that completes when the task completes or a timeout occurrs.

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

Syntax


public static Task TaskWaitTimeout(
	Task task,
	TimeSpan timeout
)
Public Shared Function TaskWaitTimeout ( _
	task As Task, _
	timeout As TimeSpan _
) As Task
public:
static Task^ TaskWaitTimeout(
	Task^ task, 
	TimeSpan^ timeout
)

Parameters

task
Type: Task
Task to be timed out.
timeout
Type: TimeSpan
Timeout interval.

Return Value

The completed task.