You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* private val imageProcessingDispatcher = backgroundDispatcher.limitedParallelism(3)
Need to change from imageProcessingDispatcher to jsonProcessingDispatcher, so it will look like:
* private val backgroundDispatcher = newFixedThreadPoolContext(4, "App Background")
* // At most 2 threads will be processing images as it is really slow and CPU-intensive
* private val imageProcessingDispatcher = backgroundDispatcher.limitedParallelism(2)
* // At most 3 threads will be processing JSON to avoid image processing starvation
* private val jsonProcessingDispatcher = backgroundDispatcher.limitedParallelism(3)
* // At most 1 thread will be doing IO
* private val fileWriterDispatcher = backgroundDispatcher.limitedParallelism(1)
The text was updated successfully, but these errors were encountered:
Hello, looks like a small typo in
CoroutineDispatcher.kt
kotlinx.coroutines/kotlinx-coroutines-core/common/src/CoroutineDispatcher.kt
Line 87 in c51f795
Need to change from
imageProcessingDispatcher
tojsonProcessingDispatcher
, so it will look like:The text was updated successfully, but these errors were encountered: