IFuture IFuture Interface

Definition

A Future represents the result of an asynchronous computation.

[Android.Runtime.Register("java/util/concurrent/Future", "", "Java.Util.Concurrent.IFutureInvoker", ApiSince=1)]
[Java.Interop.JavaTypeParameters(new System.String[] { "V" })]
public interface IFuture : Android.Runtime.IJavaObject, IDisposable
type IFuture = interface
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
IsCancelled IsCancelled

Returns true if this task was cancelled before it completed normally.

IsDone IsDone

Returns true if this task completed.

Methods

Cancel(Boolean) Cancel(Boolean)

Attempts to cancel execution of this task.

Get() Get()

Waits if necessary for the computation to complete, and then retrieves its result.

Get(Int64, TimeUnit) Get(Int64, TimeUnit)

Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)
GetAsync(IFuture) GetAsync(IFuture)
GetAsync(IFuture, Int64, TimeUnit) GetAsync(IFuture, Int64, TimeUnit)

Applies to