public final class OperatorStartFuture
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> rx.Observable<T> |
startFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends T>> functionAsync)
Invokes the asynchronous function, surfacing the result through an observable sequence.
|
static <T> rx.Observable<T> |
startFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends T>> functionAsync,
rx.Scheduler scheduler)
Invokes the asynchronous function, surfacing the result through an observable sequence
running on the given scheduler.
|
public static <T> rx.Observable<T> startFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends T>> functionAsync)
Important note subscribing to the resulting observable blocks until the future completes.
T - the result typefunctionAsync - the asynchronous function to runpublic static <T> rx.Observable<T> startFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends T>> functionAsync,
rx.Scheduler scheduler)
T - the result typefunctionAsync - the asynchronous function to runscheduler - the scheduler where the completion of the Future is awaited