pers
04/14/2024, 3:01 PMfun loadUsersByRegion(regions: List<String>): Flow<List<User>>
I want to call fetchInfo on each item without nesting map....
fun fetchInfo(user: User): Info
is there any better?
.flatMapConcat { users ->
flow {
val usersInfo = users.map { user -> fetchInfo(user) }
emit(usersInfo)
}
}