public final class OperatorTake<T> extends java.lang.Object implements Observable.Operator<T,T>
num items emitted by the source
Observable.
You can choose to pay attention only to the first num items emitted by an
Observable by using the take operation. This operation returns an Observable that will invoke a
subscribing Observer's onNext function a maximum of num times before
invoking onCompleted.
| Constructor and Description |
|---|
OperatorTake(int limit) |
| Modifier and Type | Method and Description |
|---|---|
Subscriber<? super T> |
call(Subscriber<? super T> child) |
public Subscriber<? super T> call(Subscriber<? super T> child)
call in interface Func1<Subscriber<? super T>,Subscriber<? super T>>