CoroutineLauncher
Interface for launching coroutines with error handling and loading state tracking.
You can track multiple different kinds of loading states by defining separate MutableStateFlow.
See also
or ReactiveState for a full implementation that you'll usually want to use.
Inheritors
Functions
Watches observables for changes. Often useful to keep things in sync (e.g. CoroutineLauncher -> UI).
Watches observables for changes. Often useful to keep things in sync (e.g. CoroutineLauncher -> UI).
Creates a StateFlow that computes its value based on other StateFlows via an autoRun block.
Creates a StateFlow that computes its value based on other StateFlows via a suspendable coAutoRun block.
Helper for adding a completion handler to a CoroutineLauncher.
Launches a coroutine. Mark long-running coroutines by setting withLoading to loading state.
Launches a coroutine without any error handling or loading state tracking.
Runs OnInit.trigger for this class.