https://kotlinlang.org logo
Title
i

igorvd

07/03/2018, 1:34 PM
Anyone have a good use case for using channels on Android? I'm trying to learn it, but I can't think in any good reason to use it on Android (Not saying that it doesn't exists tho)
l

louiscad

07/03/2018, 1:42 PM
Callbacks hells like Camera2 or BluetoothGatt (for BluetoothGatt, an open source library I worked on already exists for this: https://github.com/Beepiz/BleGattCoroutines)
j

julioyg

07/03/2018, 1:52 PM
anything you would need a stream of data for
o observe changes in a DB for instance
w

withoutclass

07/03/2018, 2:30 PM
d

dekans

07/03/2018, 4:13 PM
- Channels (directly) to wrap callbacks and make it readable. - Actors to confine mutability, and so, remove
synchronize
calls
@withoutclass brilliant! Bookmarked :)
w

withoutclass

07/03/2018, 4:30 PM
😮 thanks 😄
@dekans if you like that definitely check out @louiscad’s libraries for bluetooth
d

dekans

07/03/2018, 4:31 PM
I already know it, thanks :)
Aha, great 🙂
d

dekans

07/03/2018, 4:32 PM
I already use channels to hide callback API
i

igorvd

07/03/2018, 5:00 PM
Thanks guys, I'll definitely check it out 😃