Wait for the indicated task to be completed or canceled.
Namespace:
Tortuga.Anchor
Assembly:
Tortuga.Anchor (in Tortuga.Anchor.dll)
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.
Exception | Condition |
---|
[ArgumentNullException] | task;task is null. |