RxJava



rx.operators
Class OperationTakeUntil

java.lang.Object
  extended by rx.operators.OperationTakeUntil

public class OperationTakeUntil
extends java.lang.Object

Returns an Observable that emits the items from the source Observable until another Observable emits an item.


Constructor Summary
OperationTakeUntil()
           
 
Method Summary
static
<T,E> Observable<T>
takeUntil(Observable<? extends T> source, Observable<? extends E> other)
          Returns the values from the source observable sequence until the other observable sequence produces a value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OperationTakeUntil

public OperationTakeUntil()
Method Detail

takeUntil

public static <T,E> Observable<T> takeUntil(Observable<? extends T> source,
                                            Observable<? extends E> other)
Returns the values from the source observable sequence until the other observable sequence produces a value.

Type Parameters:
T - the type of source.
E - the other type.
Parameters:
source - the source sequence to propagate elements for.
other - the observable sequence that terminates propagation of elements of the source sequence.
Returns:
An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation.