Language

IFutureExtensions.GetAsync Method

Definition

Overloads

Name Description
GetAsync(IFuture)

Runs Get() on the specified future through Task.

GetAsync(IFuture, Int64, TimeUnit)

Runs Get(Int64, TimeUnit) on the specified future through Task.

GetAsync(IFuture)

Runs Get() on the specified future through Task.

public static System.Threading.Tasks.Task<Java.Lang.Object?> GetAsync(this Java.Util.Concurrent.IFuture self);
static member GetAsync : Java.Util.Concurrent.IFuture -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

self
IFuture

The future whose Get() method is called.

Returns

A task whose result is the value returned by Get().

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

GetAsync(IFuture, Int64, TimeUnit)

Runs Get(Int64, TimeUnit) on the specified future through Task.

public static System.Threading.Tasks.Task<Java.Lang.Object?> GetAsync(this Java.Util.Concurrent.IFuture self, long timeout, Java.Util.Concurrent.TimeUnit? unit);
static member GetAsync : Java.Util.Concurrent.IFuture * int64 * Java.Util.Concurrent.TimeUnit -> System.Threading.Tasks.Task<Java.Lang.Object>

Parameters

self
IFuture

The future whose timed Get(Int64, TimeUnit) method is called.

timeout
Int64

The maximum wait duration passed to Get(Int64, TimeUnit).

unit
TimeUnit

The unit used to measure timeout.

Returns

A task whose result is the value returned by Get(Int64, TimeUnit).

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to