TBD
TBD
In RxGroovy, this filtering operator is implemented as last
and lastOrDefault
.
Somewhat confusingly, there are also BlockingObservable
operators called last
and lastOrDefault
that block and then return items, rather than immediately returning
Observables.
last
and lastOrDefault
do not by default operate on any particular
Scheduler.
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.
Observable.toBlocking()
BlockingObservable.from(Observable)
In RxJava, this filtering operator is implemented as last
and lastOrDefault
.
Somewhat confusingly, there are also BlockingObservable
operators called last
and lastOrDefault
that block and then return items, rather than immediately returning
Observables.
last
and lastOrDefault
do not by default operate on any particular
Scheduler.
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.
Observable.toBlocking()
BlockingObservable.from(Observable)
last
is found in each of the following distributions:
rx.all.js
rx.all.compat.js
rx.aggregates.js
It requires one of the following distributions:
rx.js
rx.compat.js
rx.lite.js
rx.lite.compat.js