`withContext(EmptyCoroutineContext) { .. }` basica...
# coroutines
z
withContext(EmptyCoroutineContext) { .. }
basically does nothing right?
s
I believe so, yes.
t
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.