Join Slack
Powered by
to enforce `io` or `main` for example?
# 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
Dominaezzz
08/07/2019, 3:13 PM
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
Open in Slack
Previous
Next