benny.huo
01/18/2020, 2:13 PMbdawg.io
01/18/2020, 5:02 PMcollect
is called from. A publisher should already have it's schedulers registered before it's adapted to a Flow.
If you don't have any schedulers on your Publisher, your flowOn
operator will set the context that the collect
is executed againstbenny.huo
01/18/2020, 10:36 PMflowOn
operator will not set the context, that's the problem.bdawg.io
01/19/2020, 3:27 PMReactorContext
https://github.com/Kotlin/kotlinx.coroutines/blob/1.3.3/reactive/kotlinx-coroutines-reactor/src/ReactorContext.kt
I could see why they wouldn't manipulate the reactive streams' scheduling. We'll see what they say in that issue I guess