Asynchronously waits for the process to exit or a specified timeout period elapses.
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public Task<ProcessResult> WaitForExitOrTimeoutAsync(CancellationToken cancellationToken)
A cancellation token that can be used by other objects or threads to receive notice of cancellation.