Extensions for kotlinx.coroutines.Dispatchers

fixedThreadPoolDispatcher

fun Dispatchers.fixedThreadPoolDispatcher(
    threadCount: Int,
    threadName: String = "thread-pool-%d"
): CoroutineDispatcher

Creates CoroutineDispatcher based on thread pool of threadCount threads.