<@U2E974ELT> did you write any adapter between Cor...
# coroutines
p
@elizarov did you write any adapter between CoroutineContext and Rx Schedulers? Is there even any correlation?
j
Scheduler.asCoroutineContext
exists
p
the other way around 😄
j
oh sorry^^
p
our evil plan is to have an adapter to make Rx look like coroutines. Everything works now, except we only need to make the Coroutines into Schedulers
e
It should be quite straightforward to write adapter the other way around. We can include into
kotlinx.coroutines
if you care to send PR.
👍 1
p
Will the adapter be from CorroutineContext or from CoroutineDispatcher?
I’ll keep it on Arrow because we don’t depend on kotlinx except on the adapter module, happy to contribute the code back tho 😄
g
I think it should be adapter from CoroutineDispatcher. CoroutineContext may not contain Disaptcher
p
problem is the Dispatcher isn’t available in the language, just in kotlinx
and the copypaste may be painful 😛