SupportDispatcher

constructor(main: CoroutineDispatcher = Dispatchers.Main, computation: CoroutineDispatcher = Dispatchers.Default, io: CoroutineDispatcher = Dispatchers.IO, confined: CoroutineDispatcher = newSingleThreadContext("ConfinedContext"))

Parameters

main

Context that is confined to the Main thread operating with UI objects

computation

Context that is used by all standard builders, It is backed by a shared pool of threads on JVM. By default, the maximal level of parallelism used by this dispatcher is equal to the number of CPU cores, but is at least two.

io

Context that is designed for offloading blocking IO tasks to a shared pool of threads.

confined

Context that is confined to a single thread