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 is a plain ProcessResult containing the child process's exit details; it does not include buffered standard output or standard error text. To capture buffered output, use CaptureBufferedResultAsync(CancellationToken, Nullable<Int64>, Nullable<Int64>) instead.