3.x: Add Maybe/Single/Completable blockingSubscribe by akarnokd · Pull Request #6862 · ReactiveX/RxJava (original) (raw)
Add the missing blockingSubscribe
methods to Maybe
, Single
and Completable
for symmetry with Flowable
and Observable
.
Usually we'd like to avoid blocking but now that Project Loom (preview) transparently turns latch-based awaiting into suspension inside Virtual Threads, they will act as free interop operators for exiting the reactive world into the continuation world.
Related: #6852
Marbles: