toUninitializedSubject

fun <T> MutableSharedFlow<T>.toUninitializedSubject(coroutineScope: CoroutineScope, context: CoroutineContext = coroutineScope.coroutineContext): SharedFlowSubject<T>

Converts a MutableSharedFlow to a SharedFlowSubject

Parameters

coroutineScope

The CoroutineScope on which to observe the MutableSharedFlow

context

The CoroutineContext in which to observe the MutableSharedFlow