public class OperatorToObservableFuture
extends java.lang.Object
You can convert any object that supports the Future interface into an Observable that emits the return value of the get() method of that object, by using the from operation.
This is blocking so the Subscription returned when calling
Observable.unsafeSubscribe(Observer) does nothing.
| Constructor and Description |
|---|
OperatorToObservableFuture() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Observable.OnSubscribe<T> |
toObservableFuture(java.util.concurrent.Future<? extends T> that) |
static <T> Observable.OnSubscribe<T> |
toObservableFuture(java.util.concurrent.Future<? extends T> that,
long time,
java.util.concurrent.TimeUnit unit) |
public static <T> Observable.OnSubscribe<T> toObservableFuture(java.util.concurrent.Future<? extends T> that)
public static <T> Observable.OnSubscribe<T> toObservableFuture(java.util.concurrent.Future<? extends T> that, long time, java.util.concurrent.TimeUnit unit)