June 2017
Intermediate to advanced
400 pages
8h 44m
English
When you want to run tasks sequentially on a single thread, you can invoke Schedulers.single(). This is backed by a single-threaded implementation appropriate for event looping. It can also be helpful to isolate fragile, non-threadsafe operations to a single thread:
Observable.just("Alpha", "Beta", "Gamma", "Delta", "Epsilon") .subscribeOn(Schedulers.single());
Read now
Unlock full access