I want to handle clicks in such a way that they are ignored as long as I\'m doing processing of some click that occurred.
I thought I could do it by utilizing the ba
Using flatMapSingle instead of concatMapSingle does the trick, as suggested by akarnokd on GitHub:
flatMapwill only fetch the next upstream item if the current one actually completed
The last parameter is maxConcurrency, specifying the maximum number of active subscriptions to the SingleSources:
clicks
.onBackpressureDrop()
.flatMapSingle(::handleClick, false, 1)
In this instance, flatMapSingle subscribes to those Singles sequentially, so it doesn't change the semantics I got from concatMapSingle.