ribesg
02/16/2024, 1:32 PMribesg
02/16/2024, 1:40 PMribesg
02/16/2024, 1:49 PMrunBlocking
documentation states:
The default CoroutineDispatcher for this builder is an internal implementation of event loop that processes continuations in this blocked thread until the completion of this coroutine. See CoroutineDispatcher for the other implementations that are provided by kotlinx.coroutines.
Does that mean withContext(Dispatchers.Default)
gets ignored or something? I just don't get what's happening.Sam
02/16/2024, 1:53 PMwithContext(Dispatchers.Default)
doesn't get ignored. runBlocking
starts out using its event loop dispatcher, but inside the withContext
block, the default dispatcher will be used.Sam
02/16/2024, 1:54 PMCounter = 100000
despite the doc saying that's "highly unlikely"?bezrukov
02/16/2024, 1:54 PMSam
02/16/2024, 1:55 PMSam
02/16/2024, 1:56 PMribesg
02/16/2024, 1:57 PMribesg
02/16/2024, 1:58 PMbezrukov
02/16/2024, 2:06 PMAdam S
02/16/2024, 4:08 PM