https://kotlinlang.org logo
#coroutines
Title
# coroutines
z

zak.taccardi

07/31/2020, 4:54 PM
withContext(EmptyCoroutineContext) { .. }
basically does nothing right?
s

Sam Garfinkel

07/31/2020, 4:54 PM
I believe so, yes.
t

tseisel

07/31/2020, 7:02 PM
It actually does ! While it does not imply a context switch,
withContext
will suspend until all its children coroutines complete. That behaviour is very similar to the
coroutineScope
block.
4 Views