Pitel
05/16/2022, 10:43 AMsomeFlow.collect {
Log.d(TAG, ">")
// Some stuff
Log.d(TAG, "<")
}
So, I should in Android's logcat alternating arrows going left and right. And in most cases, I do. But on some rare occasions, I see 2 going right and 2 going left. Any idea why that might happen?!myanmarking
05/16/2022, 10:49 AMPitel
05/16/2022, 10:53 AMconflate
above the collect
. But, it shouldn't cause the cancelation, no?myanmarking
05/16/2022, 10:57 AMPitel
05/16/2022, 10:58 AMbezrukov
05/16/2022, 11:34 AMsomeFlow.collect {
val identity = Random.nextInt()
Log.d(TAG, "> $identity")
// Some stuff
Log.d(TAG, "< $identity")
}
yschimke
05/16/2022, 11:35 AMbezrukov
05/16/2022, 11:37 AMval identity = Random.nextInt()
someFlow.collectIndexed { index, value ->
Log.d(TAG, "> $identity => $index")
// Some stuff
Log.d(TAG, "< $identity => $index")
}