Package-level declarations

Functions

Link copied to clipboard
fun <T> ViewModel.async(useMainDispatcher: Boolean = false, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> T): Deferred<T>
Link copied to clipboard

Factory method to create any AndroidViewModel with Application

Link copied to clipboard
fun ViewModel.launch(useMainDispatcher: Boolean = false, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit): Job
Link copied to clipboard
fun <T> Flow<T>.toStateFlow(initialValue: T, started: SharingStarted = SharingStarted.Lazily): StateFlow<T>

Converts a cold Flow into a hot StateFlow in the context of a ViewModel