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 Object
Deprecated.A Future represents the result of an asynchronous computation.
-
-
Constructor Summary
Constructors Constructor Description SimpleFuture(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, TimeUnit unit)Deprecated.booleanisCancelled()Deprecated.voidrun()Deprecated.
-
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
Deprecated.
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
Deprecated.
-
get
public T get() throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
get
public T get(long timeout, TimeUnit unit) throws InterruptedException
Deprecated.- Throws:
InterruptedException
-
run
public void run()
Deprecated.
-
done
protected void done()
Deprecated.
-
-