Kulwinder Singh
07/12/2022, 11:10 AMdelay
for 500ms but due to this i’m missing all the other data and only last TempData is recieved
GlobalScope.launch() {
flowMain
.collect { data ->
Log.i("AppLogs", data.toString())
delay(1)
}
}
viewInputLvlArray.forEachIndexed { index, view ->
flowMain.value = TempData(index, someotherValue)
}
Lukas Lechner
07/12/2022, 11:17 AMKulwinder Singh
07/12/2022, 11:33 AMtryEmit()
that is not working but only emit
is workingemit
i need to run it in coroutine scope @Lukas Lechnermyanmarking
07/12/2022, 12:22 PMLukas Lechner
07/12/2022, 12:22 PMreplay
value to something like 15 in your SharedFlow?Kulwinder Singh
07/13/2022, 5:32 PMreplay
, it worked but problem is it worked only for first 15 items but list is iterated multiple times in some milliseconds @Lukas LechnerRaheel Naz [Amex]
07/23/2022, 12:22 AM