-
Home
-
API Reference
-
CliInvoke.Core.Processes
-
IExternalProcess
-
Methods
-
WaitForExitOrTimeoutAsync(CancellationToken)
WaitForExitOrTimeoutAsync(CancellationToken) Method
Definition
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.