Teanga

Process.WaitForAsync Method

Definition

Overloads

Name Description
WaitForAsync()

Asynchronously waits until the subprocess terminates.

WaitForAsync(Int64, TimeUnit)

Asynchronously waits until the subprocess terminates or the specified waiting time elapses.

WaitForAsync()

Asynchronously waits until the subprocess terminates.

public System.Threading.Tasks.Task<int> WaitForAsync();
member this.WaitForAsync : unit -> System.Threading.Tasks.Task<int>

Returns

A task whose result is the subprocess exit code. By convention, zero indicates normal termination.

Remarks

This method calls WaitFor() on a thread-pool thread by using Task.Run.

Applies to

WaitForAsync(Int64, TimeUnit)

Asynchronously waits until the subprocess terminates or the specified waiting time elapses.

public System.Threading.Tasks.Task<bool> WaitForAsync(long timeout, Java.Util.Concurrent.TimeUnit? unit);
member this.WaitForAsync : int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<bool>

Parameters

timeout
Int64

The maximum wait duration, in the units specified by the unit argument.

unit
TimeUnit

The time unit for timeout.

Returns

A task whose result is true if the subprocess has exited, or false if the wait ends before it exits.

Remarks

This method calls WaitFor(Int64, TimeUnit) on a thread-pool thread by using Task.Run.

Applies to