62
android - Handle cancelation inside Kotlin Coroutines producer - Stack Overflow
source link: https://stackoverflow.com/questions/51029737/handle-cancelation-inside-kotlin-coroutines-producer
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Is it possible to handle producer cancelation inside producer builder itself? It could be useful to unsubscribe from callback:private fun changes(key: String) = produce<Unit>(UI, CONFLATED)...
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK