Hello guys! What is the better dispatcher in corou...
# android
o
Hello guys! What is the better dispatcher in coroutines for background broadcasting some data via Bluetooth? I use "Dispatchers.IO". Is it ok? I've already read this page -https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-dispatcher/ I just need your advice)
t
yes, sending data over Bluetooth is I/O operation, so
<http://Dispatchers.IO|Dispatchers.IO>
is a right choice
✔️ 1
o
Thanks
f
Very useful article. Thanks!