mzgreen
11/13/2019, 11:07 AMCoroutineScope(Dispatchers.Main + job)
the order of contexts doesn’t matter and it’s the same if I call CoroutineScope(job + Dispatchers.Main)
, right?sikri
11/13/2019, 11:14 AMJob
and CoroutineDispatcher
are CoroutineContext
and fun operator plus
combines them and its subelements.
But if element of context on the right side has same key as the element on the left side, that element with that key of the left side context won’t be used.mzgreen
11/13/2019, 11:18 AM