lokesh
06/25/2026, 9:06 AMDefaultDispatcher-worker- ?
and then this suffix with 1, 2, 3.
does this goes after 3 too?
I tried running code with Dispatchers.Default and .IO and I don't get to see IODispatcher-worker-xRiccardo Lippolis
06/25/2026, 9:12 AMIODispatcher-worker-x is because technically, the IO dispatcher also uses the same threads as the Default dispatcher, to reduce thread switching in practice when switching between Default and IO dispatcher. This is an implementation detail, noted in the documentation of Dispatchers.IO:
This dispatcher and its views share threads with the Default dispatcher, so usingwhen already running on the Default dispatcher typically does not lead to an actual switching to another thread. In such scenarios, the underlying implementation attempts to keep the execution on the same thread on a best-effort basis.withContext(<http://Dispatchers.IO|Dispatchers.IO>) { ... }