Future into an Observable.
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 this operator.
This is blocking so the Subscription returned when calling
Observable.unsafeSubscribe(Observer) does nothing.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Observable. | |
| public static <T> Observable. |
| OnSubscribeToObservableFuture | back to summary |
|---|---|
| private OnSubscribeToObservableFuture() | |
| toObservableFuture | back to summary |
|---|---|
| public static <T> Observable. | |
| toObservableFuture | back to summary |
|---|---|
| public static <T> Observable. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Future | |
| private final long | |
| private final TimeUnit |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| that | back to summary |
|---|---|
| pack-priv final Future<? extends T> that | |
| time | back to summary |
|---|---|
| private final long time | |
| unit | back to summary |
|---|---|
| private final TimeUnit unit | |
| ToObservableFuture | back to summary |
|---|---|
| public ToObservableFuture(Future<? extends T> that) | |
| ToObservableFuture | back to summary |
|---|---|
| public ToObservableFuture(Future<? extends T> that, long time, TimeUnit unit) | |
| call | back to summary |
|---|---|
| public void call(Subscriber<? super T> subscriber) Implements rx.
| |