brabo-hi
09/22/2021, 11:07 PMval players: Flow<List<HockeyPlayer>> =
playerQueries.selectAll()
.asFlow()
.mapToList()
players,collect{
// i am not getting new list when item is added, i only receive data once
}
What could i be doing that is not right ?Richard Gomez
09/23/2021, 12:31 AMasFlow()
function.
Given that flows are 'cold', not 'hot' like channels, it's likely that the flow terminates once the first iteration of data is collected.
https://elizarov.medium.com/cold-flows-hot-channels-d74769805f9brabo-hi
09/23/2021, 12:35 AMonCompletion {}
`
but it never firesTiago Nunes
09/23/2021, 10:49 AMbrabo-hi
09/23/2021, 5:11 PMTiago Nunes
09/23/2021, 5:35 PMbrabo-hi
09/23/2021, 5:49 PM