stojan
02/10/2022, 10:12 AMList<Flow<T>> to Flow<List<T>> ?stojan
02/10/2022, 10:14 AMList<Long>
for each ID I'm calling Room, which returns a Flow<T>
so by doing list.map { db.getItem(it) } I get List<Flow<T>>ephemient
02/10/2022, 10:15 AMcombine(flows) { it.toList() }hfhbd
02/10/2022, 10:15 AMephemient
02/10/2022, 10:16 AMstojan
02/10/2022, 10:16 AMcombine is what I was looking for.... somehow I missed combine that accepts a Liststojan
02/10/2022, 10:16 AMephemient
02/10/2022, 10:19 AM@Query("SELECT * FROM table WHERE id IN (:ids)")
fun getByIds(ids: List<Long>): Flow<List<Model>>ephemient
02/10/2022, 10:19 AMstojan
02/10/2022, 10:20 AM