toInitializedObservable
fun <T> MutableStateFlow<T>.toInitializedObservable(coroutineScope: CoroutineScope, context: CoroutineContext = coroutineScope.coroutineContext): FlowInitializedObservable<T>
Converts a MutableStateFlow into a FlowInitializedObservable
Parameters
coroutineScope
The CoroutineScope on which to observe the Flow
context
The CoroutineContext in which to observe the Flow
fun <T> Flow<T>.toInitializedObservable(initialValue: T, coroutineScope: CoroutineScope, context: CoroutineContext = coroutineScope.coroutineContext): FlowInitializedObservable<T>
Converts a Flow into a FlowInitializedObservable
Parameters
initialValue
The initial value to observe until the Flow emits.
coroutineScope
The CoroutineScope on which to observe the Flow
context
The CoroutineContext in which to observe the Flow
fun <T> ReadOnlyProperty<Any?, T>.toInitializedObservable(): ReadOnlyPropertyInitializedObservable<T>
Converts a ReadOnlyProperty into a ReadOnlyPropertyInitializedObservable