Extensions for kotlinx.coroutines.Dispatchers

clientDispatcher

fun Dispatchers.clientDispatcher(
    threadCount: Int,
    dispatcherName: String = "client-dispatcher"
): CoroutineDispatcher

Creates CoroutineDispatcher based on thread pool of threadCount threads.

fixedThreadPoolDispatcher

fun Dispatchers.fixedThreadPoolDispatcher(
    threadCount: Int,
    dispatcherName: String = "client-dispatcher"
): CoroutineDispatcher

Creates CoroutineDispatcher based on thread pool of threadCount threads.