These are chat archives for ReactiveX/RxJava

29th
Jun 2017
millsdude99
@millsdude99
Jun 29 2017 10:29
Hi, I'm new to rx java, transitioning from rx C#. I want to marshall the observable, via observeOn to another thread. It needs to be a single thread to preserve ordering. In c# world, I used an EventLoopScheduler in my ObserveOn calls.
What is the corollary in Java. I've seen suggested to used Schedulers.computation, but I am not sure how that is managed. Is it a single thread, or delegate to a thread pool?
For now i've created a scheduler based on a singleThreadExecutor --- observeOn(Schedulers.from(Executors.newSingleThreadExecutor)
Does this seem like a coherent approach?