How to fire just one result from a couple of emits in Kotlin coroutine flow?

前端 未结 0 550
情歌与酒
情歌与酒 2021-01-04 17:54

I have a flow like this:

fun createRawDataFlow() = callbackFlow {
    SensorProProvider.getInstance(this@MainActivity).registerDataCallback { se         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题