Victor Collod
04/15/2022, 2:53 PMwasyl
04/15/2022, 6:25 PMfun foo(
ints1: Flow<Int>,
ints2: Flow<Int>,
ints3: Flow<Int>,
) = combine(ints1, ints2, ints3) { ints -> ints.maxOf { it } }
.distinctUntilChanged()
.flatMapLatest { currentMax -> getResource(currentMax) }
fun getResource(int: Int): Flow<String> = TODO()
Victor Collod
04/19/2022, 7:40 AM