public final class OperatorDeferFuture
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <T> rx.Observable<T> |
deferFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends rx.Observable<? extends T>>> observableFactoryAsync)
Returns an observable sequence that starts the specified asynchronous
factory function whenever a new observer subscribes.
|
static <T> rx.Observable<T> |
deferFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends rx.Observable<? extends T>>> observableFactoryAsync,
rx.Scheduler scheduler)
Returns an observable sequence that starts the specified asynchronous
factory function whenever a new observer subscribes.
|
public static <T> rx.Observable<T> deferFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends rx.Observable<? extends T>>> observableFactoryAsync)
T - the result typeobservableFactoryAsync - the asynchronous function to start for each observerpublic static <T> rx.Observable<T> deferFuture(rx.functions.Func0<? extends java.util.concurrent.Future<? extends rx.Observable<? extends T>>> observableFactoryAsync,
rx.Scheduler scheduler)
T - the result typeobservableFactoryAsync - the asynchronous function to start for each observerscheduler - the scheduler where the completion of the Future is awaited