asStateFlow

fun <T> Flow<T>.asStateFlow(scope: CoroutineScope, started: SharingStarted = SharingStarted.WhileSubscribed(5000), initialValue: T = blockFirst()): StateFlow<T>