clientDispatcher
expect fun Dispatchers.clientDispatcher(threadCount: Int, dispatcherName: String = "ktor-client-dispatcher"): CoroutineDispatcher(source)
Deprecated
Use Dispatchers.IO.limitedParallelism instead
Replace with
import kotlinx.coroutines.Dispatchers
Content copied to clipboard
Dispatchers.IO.limitedParallelism(threadCount)Content copied to clipboard
Creates CoroutineDispatcher for the client with fixed threadCount and specified dispatcherName.
Parameters
threadCount
the number of threads for the new CoroutineDispatcher.
dispatcherName
the name of the new CoroutineDispatcher.
actual fun Dispatchers.clientDispatcher(threadCount: Int, dispatcherName: String): CoroutineDispatcher(source)
Creates CoroutineDispatcher based on thread pool of threadCount threads.
actual fun Dispatchers.clientDispatcher(threadCount: Int, dispatcherName: String): CoroutineDispatcher(source)
Creates CoroutineDispatcher for client with fixed threadCount and specified dispatcherName.
actual fun Dispatchers.clientDispatcher(threadCount: Int, dispatcherName: String): CoroutineDispatcher(source)
Creates CoroutineDispatcher for client with fixed threadCount and specified dispatcherName.