StartAsync(CancellationToken) Method

Definition

Assembly CliInvoke.Core.dll

Asynchronously starts the external process, feeding the configured standard input to the child when redirection is enabled.

Task StartAsync(CancellationToken cancellationToken)

Parameters

cancellationToken
CancellationToken

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

Returns

Task
A task that completes once the process has been launched and any configured standard input has been piped to the child. The method does not wait for the process to exit and produces no process result; obtain the result separately via WaitForExitOrTimeoutAsync(CancellationToken) or CaptureBufferedResultAsync(CancellationToken, Nullable<Int64>, Nullable<Int64>).