WaitForExitOrTimeoutAsync(CancellationToken) Method

Definition

Assembly CliInvoke.Core.dll

Asynchronously waits for the process to exit or a specified timeout period to elapse.

Task<ProcessResult> WaitForExitOrTimeoutAsync(CancellationToken cancellationToken)

Parameters

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Task<ProcessResult>
A task that represents the asynchronous operation. The result contains the buffered process result when the method completes.