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 boolean
cancel(boolean mayInterruptIfRunning)
Deprecated.protected void
done()
Deprecated.T
get()
Deprecated.T
get(long timeout, TimeUnit unit)
Deprecated.boolean
isCancelled()
Deprecated.void
run()
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.
-
-