ITestHostHandle.WaitForExitAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.