RxGroovy first firstOrDefault latest mostRecent next single singleOrDefault takeFirst
In RxGroovy, this filtering operator is implemented as first, firstOrDefault, and takeFirst.
Somewhat confusingly, there are also BlockingObservable operators called first and firstOrDefault that block and then return items, rather than immediately returning Observables.
There are also several other operators that perform similar functions.
The Filtering Operators
first, firstOrDefault, single, singleOrDefault, and takeFirst do not by default operate on any particular Scheduler.
The BlockingObservable Methods
The BlockingObservable methods do not transform an Observable into another, filtered Observable, but rather they break out of the Observable cascade, blocking until the Observable emits the desired item, and then return that item itself.
To turn an Observable into a BlockingObservable so that you can use these methods, you can use either the Observable.toBlocking or BlockingObservable.from methods.
RxJava 1․x first firstOrDefault latest mostRecent next single singleOrDefault takeFirst
In RxJava, this filtering operator is implemented as first, firstOrDefault, and takeFirst.
Somewhat confusingly, there are also BlockingObservable operators called first and firstOrDefault that block and then return items, rather than immediately returning Observables.
There are also several other operators that perform similar functions.
The Filtering Operators
first, firstOrDefault, single, singleOrDefault, and takeFirst do not by default operate on any particular Scheduler.
The BlockingObservable Methods
The BlockingObservable methods do not transform an Observable into another, filtered Observable, but rather they break out of the Observable cascade, blocking until the Observable emits the desired item, and then return that item itself.
To turn an Observable into a BlockingObservable so that you can use these methods, you can use either the Observable.toBlocking or BlockingObservable.from methods.