Java.Util.Concurrent.FutureTask Class
A cancellable asynchronous computation.

See Also: FutureTask Members

Syntax

[Android.Runtime.Register("java/util/concurrent/FutureTask", DoNotGenerateAcw=true)]
public class FutureTask : Java.Lang.Object, IRunnableFuture, IDisposable

Remarks

A cancellable asynchronous computation. This class provides a base implementation of Java.Util.Concurrent.IFuture, with methods to start and cancel a computation, query to see if the computation is complete, and retrieve the result of the computation. The result can only be retrieved when the computation has completed; the get methods will block if the computation has not yet completed. Once the computation has completed, the computation cannot be restarted or cancelled (unless the computation is invoked using FutureTask.RunAndReset).

A FutureTask can be used to wrap a Java.Util.Concurrent.ICallable or Java.Lang.IRunnable object. Because FutureTask implements Runnable, a FutureTask can be submitted to an Java.Util.Concurrent.IExecutor for execution.

In addition to serving as a standalone class, this class provides protected functionality that may be useful when creating customized task classes.

[Android Documentation]

Requirements

Namespace: Java.Util.Concurrent
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1