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 public class SimpleFuture<T> extends java.lang.ObjectDeprecated.A Future represents the result of an asynchronous computation.
-
-
Constructor Summary
Constructors Constructor Description SimpleFuture(java.util.concurrent.Callable<T> callable)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancancel(boolean mayInterruptIfRunning)Deprecated.protected voiddone()Deprecated.Tget()Deprecated.Tget(long timeout, java.util.concurrent.TimeUnit unit)Deprecated.booleanisCancelled()Deprecated.voidrun()Deprecated.
-
-
-
Constructor Detail
-
SimpleFuture
public SimpleFuture(java.util.concurrent.Callable<T> callable)
Deprecated.
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
Deprecated.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.
-
get
public T get() throws java.lang.InterruptedException
Deprecated.- Throws:
java.lang.InterruptedException
-
get
public T get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
Deprecated.- Throws:
java.lang.InterruptedException
-
run
public void run()
Deprecated.
-
done
protected void done()
Deprecated.
-
-