Hey guys; is there a different between ... Corouti...
# android
f
Hey guys; is there a different between ... CoroutineScope(SupervisorJob() + Dispatchers.IO) and ... CoroutineScope(Dispatchers.IO + SupervisorJob()) If yes, which is the correct format?
j
I don’t think so, they both build coroutine context anyways.
👍 1
g
There is no difference, check coroutines context doc, it essentially works as a map, so this expression works as merging of maps, as soon as there are no duplicate keys, order doesn't matter, in this case you combine dispatcher and job which have different keys for context
👍 1