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

Paul Woitaschek

01/27/2018, 9:58 PM
Injecting
Unconfined
in tests generally seems to be a good idea
d

dave08

01/28/2018, 3:19 AM
If you're on jvm, you could use
runBlocking
and
join
or
await
to test concurrent code using the
CommonPool
, otherwise the test finishes before the result... in your case you were comparing to rx with no scheduler, and in the reactive guide it says
Unconfined
is the most similar to that...
3 Views