Guard.IsNotCompleted(Task, String) Method

Definition

Asserts that the input Task instance is not in a completed state.

public static void IsNotCompleted (System.Threading.Tasks.Task task, string name);
static member IsNotCompleted : System.Threading.Tasks.Task * string -> unit
Public Shared Sub IsNotCompleted (task As Task, name As String)

Parameters

task
Task

The input Task instance to test.

name
String

The name of the input parameter being tested.

Exceptions

Thrown if task is in a completed state.

Applies to