toInitializedObservable

fun <T> MutableStateFlow<T>.toInitializedObservable(coroutineScope: CoroutineScope, context: CoroutineContext = coroutineScope.coroutineContext): FlowInitializedObservable<T>

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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>

Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

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


Deprecated

This feature has been deprecated. It is recommended to use Compose Multiplatform instead.

Converts a ReadOnlyProperty into a ReadOnlyPropertyInitializedObservable