TaskUtilities..::..WaitForCompleteOrCancel Method

Wait for the indicated task to be completed or canceled.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static bool WaitForCompleteOrCancel(
	Task task
)
Public Shared Function WaitForCompleteOrCancel ( _
	task As Task _
) As Boolean

Parameters

task
Type: Task
The task.

Return Value

true if the task ran to completion, false if the task was canceled.

Exceptions


ExceptionCondition
[ArgumentNullException]task;task is null.