|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrx.operators.OperationToFuture
public class OperationToFuture
Returns a Future representing the single value emitted by an Observable.
The toFuture operation throws an exception if the Observable emits more than one item. If the
Observable may emit more than item, use toList().toFuture().
| Constructor Summary | |
|---|---|
OperationToFuture()
|
|
| Method Summary | ||
|---|---|---|
static
|
toFuture(Observable<? extends T> that)
Returns a Future that expects a single item from the observable. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OperationToFuture()
| Method Detail |
|---|
public static <T> java.util.concurrent.Future<T> toFuture(Observable<? extends T> that)
T - the type of source.that - an observable sequence to get a Future for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||