https://kotlinlang.org logo
#coroutines
Title
# coroutines
u

ursus

03/31/2021, 8:47 PM
Is
Dispatchers.Unconfined
equal to rx
Schedulers.trampoline()
? if so, why does my code not run blockingly if I replace all dispatcher references with the
Unconfined
one? That's what I used to do for testing in rx Is it not supposed to? To not impose any threading, i.e. run on native unit test thread? (Im aware of TestDispatcher, that works as expected)
e

elizarov

04/01/2021, 5:45 AM
A bit like but not exactly. It establishes its own unconfined loop at the top level to avoid unbounded stack growth.
2 Views