to enforce `io` or `main` for example?
# coroutines
a
to enforce
io
or
main
for example?
d
Instead of enforcing, I think you should just use
withContext
.
1
It'll do a dispatcher check and switch if necessary.
a
I am using with context, but i still want to protect the outer bounds of this to be invoked on the right thread