I have a function that takes a parameter function returning a Flow,
fun <T> resultFlow(
query: () -> Flow<T>,
... other parameters
): Flow<T> {
return flow {
val source = query()
//!!!! emit(source) // I want something like emitSource like livedata has
...
}
Is there anything that can be done to flow to be able to be sent like this?