Runspace.CloseAsync Method

Definition

Close the runspace Asynchronously.

public abstract void CloseAsync ();
Exceptions

RunspaceState is BeforeOpen or Opening

Remarks

Attempts to execute pipelines after a call to close will fail.