public final class OperatorForEachFuture
extends java.lang.Object
Remark: the cancellation token version's behavior is in doubt, so left out.
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.concurrent.FutureTask<java.lang.Void> |
forEachFuture(rx.Observable<? extends T> source,
rx.functions.Action1<? super T> onNext)
Subscribes to the given source and calls the callback for each emitted item,
and surfaces the completion or error through a Future.
|
static <T> java.util.concurrent.FutureTask<java.lang.Void> |
forEachFuture(rx.Observable<? extends T> source,
rx.functions.Action1<? super T> onNext,
rx.functions.Action1<? super java.lang.Throwable> onError)
Subscribes to the given source and calls the callback for each emitted item,
and surfaces the completion or error through a Future.
|
static <T> java.util.concurrent.FutureTask<java.lang.Void> |
forEachFuture(rx.Observable<? extends T> source,
rx.functions.Action1<? super T> onNext,
rx.functions.Action1<? super java.lang.Throwable> onError,
rx.functions.Action0 onCompleted)
Subscribes to the given source and calls the callback for each emitted item,
and surfaces the completion or error through a Future.
|
public static <T> java.util.concurrent.FutureTask<java.lang.Void> forEachFuture(rx.Observable<? extends T> source,
rx.functions.Action1<? super T> onNext)
T - the element type of the Observablesource - the source ObservableonNext - the action to call with each emitted elementpublic static <T> java.util.concurrent.FutureTask<java.lang.Void> forEachFuture(rx.Observable<? extends T> source,
rx.functions.Action1<? super T> onNext,
rx.functions.Action1<? super java.lang.Throwable> onError)
T - the element type of the Observablesource - the source ObservableonNext - the action to call with each emitted elementonError - the action to call when an exception is emittedpublic static <T> java.util.concurrent.FutureTask<java.lang.Void> forEachFuture(rx.Observable<? extends T> source,
rx.functions.Action1<? super T> onNext,
rx.functions.Action1<? super java.lang.Throwable> onError,
rx.functions.Action0 onCompleted)
T - the element type of the Observablesource - the source ObservableonNext - the action to call with each emitted elementonError - the action to call when an exception is emittedonCompleted - the action to call when the source completes