Rxjava: 3.x: Add "exhaustMap" (flatMapFirst) operator

Created on 9 Feb 2020  路  3Comments  路  Source: ReactiveX/RxJava

Please add flatMapFirst (exhaustMap) operator, like this exhaustMap-rxjs, flatMapFirst in RxSwift.
Thanks!

3.x Feature-Request

All 3 comments

No. This is an uncommon operation to perform that can be emulated with existing operators:

source.onBackpressureDrop().flatMap(mapper, 1)

or

flatMapDrop for Observable.

Thanks @akarnokd

@akarnokd I could not agree less. ExhaustMap should be made standard. Coming from RxJs this is very inconvenient to use additional libraries for functionality that seems so common.

Was this page helpful?
0 / 5 - 0 ratings