I am new to the ReactiveX library (I use its scala variant, RxScala).
I have an Observable
that emits values at high rate. I would like to apply a function to all values of the Observable
(map
). The function, which I use in map
, is computationally rather expensive.
Is there a way to have a thread pool for computing the map
phase in parallel?
Copyright Notice:Content Author:「David Frank」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/33816501/parallel-execution-of-computationally-expensive-map