Closed oldergod closed 6 years ago
RxJava's computation() is to be used on CPU intensive tasks. Most use cases in the DroidKaigi app are for I/O calls so I use the io scheduler instead. See https://github.com/ReactiveX/RxJava/blob/363f0381c2fcc9df287d771ffd2826c64c998145/src/main/java/io/reactivex/schedulers/Schedulers.java#L90-L136
computation()
io
Thanks 👍
Overview
RxJava's
computation()
is to be used on CPU intensive tasks. Most use cases in the DroidKaigi app are for I/O calls so I use theio
scheduler instead. See https://github.com/ReactiveX/RxJava/blob/363f0381c2fcc9df287d771ffd2826c64c998145/src/main/java/io/reactivex/schedulers/Schedulers.java#L90-L136