observeFlow
fun <R : T, T, OO : ObservableOptional<R>> observeFlow(observation: Observation<R, T, OO>, coroutineScope: CoroutineScope, context: CoroutineContext = coroutineScope.coroutineContext, flow: Flow<T>)
Observes a Flow and sets updates value to an Observation while it is being observed
Parameters
observation
The Observation to observe the Flow
coroutineScope
The CoroutineScope on which to observe the Flow
context
The CoroutineContext in which to observe the Flow
flow
The Flow to observe.