Join Slack
Powered by
Also, I was reading this <post> on stackoverflow a...
# coroutines
h
Hong Phuc
03/09/2025, 6:27 AM
Also, I was reading this
post
on stackoverflow about Kotlin dispatcher, the answer state that Dispatcher.Default is meant for cpu intensive tasks, is there any document that state this?
j
Joffrey
03/09/2025, 10:03 AM
It is explained in the post you linked, and in the documentation:
https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-dispatchers/-default.html
The dispatcher is backed by a pool of threads with as many threads as CPU cores, that's why you want it for things that use the CPU and not just block and wait
h
Hong Phuc
03/09/2025, 10:52 AM
I see, thanks
@Joffrey
Open in Slack
Previous
Next