Hint the scheduler that we are mostly non-blocking

This commit is contained in:
GG Bond authored and Vladimir Dostoyevskiy committed 2023-12-04 00:46:58 +08:00
1 parent 151949aecf
commit 5b16b6aed9
1 file changed
+1 -1
@@ -12,7 +12,7 @@ import kotlinx.coroutines.suspendCancellableCoroutine
val pool = DirectByteBufferPool(32)
// Limit thread to 1 since we are async & non-blocking
val cronetDispatcher = Dispatchers.IO.limitedParallelism(1)
val cronetDispatcher = Dispatchers.Default.limitedParallelism(1)
val cronetHttpClientExecutor = cronetDispatcher.asExecutor()
@Suppress("NewApi")