Language

Process.WaitForAsync Method

Definition

Overloads

Name Description
WaitForAsync()

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

WaitForAsync(Int64, TimeUnit)

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

WaitForAsync()

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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 API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Applies to

WaitForAsync(Int64, TimeUnit)

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

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 API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Applies to