Use the following code:
Publisher publisher = observable.toFlowable(BackpressureStrategy.XXX);
Since Observable does not implement backpressure, you need to choose a backpressure strategy for conversion. See Available Options here .
Or use Flowable instead of Observable first. See here for more details.
Yaroslav stavnichiy
source share