Hint the scheduler that we are mostly non-blocking
This commit is contained in:
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")
|
||||
|
||||
Reference in new issue
Block a user