public class RxUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> rx.Observable<T> |
from(com.google.common.util.concurrent.ListenableFuture<T> future,
Executor executor)
Converts from
ListenableFuture to Observable. |
static <T> rx.Observable<T> |
from(com.google.common.util.concurrent.ListenableFuture<T> future,
rx.Scheduler scheduler)
Converts from
ListenableFuture to Observable. |
public static <T> rx.Observable<T> from(com.google.common.util.concurrent.ListenableFuture<T> future,
rx.Scheduler scheduler)
ListenableFuture to Observable.future - the ListenableFuture to register a listener on.scheduler - the Scheduler where the callback will be executed. The will be where the
Observer.onNext(Object) call from.Observable that emits the one value when the future completes.public static <T> rx.Observable<T> from(com.google.common.util.concurrent.ListenableFuture<T> future,
Executor executor)
ListenableFuture to Observable.future - the ListenableFuture to register a listener on.executor - the Executor where the callback will be executed. The will be where the
Observer.onNext(Object) call from.Observable that emits the one value when the future completes.Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.