Diego
11/17/2021, 4:05 PMval flowA: Flow<String>
suspend fun funB(): Int
How can I combine the result of both into a Flow?Diego
11/17/2021, 4:24 PMDiego
11/17/2021, 4:24 PMcombine(
flowA,
flow {emit(funB())}
) { a, b ->
...
}
Nick Allen
11/17/2021, 4:40 PM::funB.asFlow()
also works (don't know about "better")