Package org.robolectric.util
Class SimpleFuture<T>
java.lang.Object
org.robolectric.util.SimpleFuture<T>
- Type Parameters:
T
- The result type returned by this Future's get method.
Deprecated.
This class can introduce deadlocks, since its lock is held while invoking run().
A Future represents the result of an asynchronous computation.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SimpleFuture
Deprecated.
-
-
Method Details
-
isCancelled
public boolean isCancelled()Deprecated. -
cancel
public boolean cancel(boolean mayInterruptIfRunning) Deprecated. -
get
Deprecated.- Throws:
InterruptedException
-
get
Deprecated.- Throws:
InterruptedException
-
run
public void run()Deprecated. -
done
protected void done()Deprecated.
-