```(SupervisorJob() + Dispatchers.Main.immediate) ...
# coroutines
t
Copy code
(SupervisorJob() + Dispatchers.Main.immediate) + <http://Dispatchers.IO|Dispatchers.IO>
What happens in the above case? Will it run as
IO
?
yes black 2
🙏 1
h
withContext basically adds the new context to the existing context:
withContext(Main) { withContext(IO) { }}
. Duplicates elements are replaced.
t
I knew I could switch with
withContext
but for the context construction I wasn't sure 😄