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

aerb

08/07/2019, 3:12 PM
to enforce
io
or
main
for example?
d

Dominaezzz

08/07/2019, 3:12 PM
Instead of enforcing, I think you should just use
withContext
.
1
It'll do a dispatcher check and switch if necessary.
a

aerb

08/07/2019, 3:14 PM
I am using with context, but i still want to protect the outer bounds of this to be invoked on the right thread
3 Views