Kotlinx.coroutines: Way to use a CoroutineDispatcher as a RxJava Scheduler

Created on 12 Sep 2018  路  4Comments  路  Source: Kotlin/kotlinx.coroutines

The rx2 artifact currently provides Scheduler.asCoroutineDispatcher() to use a Scheduler as a CoroutineDispatcher, but not the other way around.

Ideally I'd like to move over to the new IO and BackgroundDispatcher, and then move my Rx observables to use the same threads too.

enhancement reactive

All 4 comments

PR is welcome!

I'll PR when I've done my KotlinConf slides (if no-one else grabs it first)

Please do it for all reactive implementations (rx1, rx2, and reactor) if possible, just like asCoroutineDispatcher is implemented in all of them.

Any progress here ?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

qwwdfsad picture qwwdfsad  路  47Comments

streetsofboston picture streetsofboston  路  40Comments

elizarov picture elizarov  路  143Comments

SUPERCILEX picture SUPERCILEX  路  40Comments

altavir picture altavir  路  44Comments