notAndroidMain.com.eygraber.vice.sources.CollectAsState.notandroid.kt Maven / Gradle / Ivy
package com.eygraber.vice.sources
import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.compose.runtime.collectAsState
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.StateFlow
@Composable
internal actual fun StateFlow.collectAsStateWithLifecycle(): State = collectAsState()
@Composable
internal actual fun Flow.collectAsStateWithLifecycle(initial: T): State = collectAsState(initial)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy