ITestHostHandle.WaitForExitAsync(CancellationToken) Method

Definition

Waits asynchronously for the test host to exit, or for cancellationToken to be canceled. The platform may await this more than once.

public System.Threading.Tasks.Task WaitForExitAsync(System.Threading.CancellationToken cancellationToken);
abstract member WaitForExitAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WaitForExitAsync (cancellationToken As CancellationToken) As Task

Parameters

cancellationToken
CancellationToken

A token that cancels the wait.

Returns

A task that completes when the test host has exited.

Applies to