-
Home
-
API Reference
-
CliInvoke.Processes
-
ExternalProcess
-
Methods
-
WaitForExitOrTimeoutAsync(CancellationToken)
WaitForExitOrTimeoutAsync(CancellationToken) Method
Definition
Asynchronously waits for the process to exit or a specified timeout period elapses.
[UnsupportedOSPlatform("ios")]
[UnsupportedOSPlatform("tvos")]
public 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.