Guys imagine I have these two sources of data: `v...
# flow
d
Guys imagine I have these two sources of data:
val flowA: Flow<String>
suspend fun funB(): Int
How can I combine the result of both into a Flow?
Is the code snippet below ok or there is a better way?
combine(
flowA,
flow {emit(funB())}
) { a, b ->
...
}
n
That's ok,
::funB.asFlow()
also works (don't know about "better")
👍 1