LifecycleCoroutineLauncher

A SimpleCoroutineLauncher that launches coroutines in the STARTED state.

Constructors

Link copied to clipboard
constructor(owner: LifecycleOwner)

Properties

Link copied to clipboard
override val loading: MutableStateFlow<Int>
Link copied to clipboard
Link copied to clipboard
override val scope: CoroutineScope

Functions

Link copied to clipboard
open fun launch(context: CoroutineContext, start: CoroutineStart, withLoading: MutableStateFlow<Int>?, onError: suspend (Throwable) -> Unit?, block: suspend CoroutineScope.() -> Unit): Job
Link copied to clipboard
open override fun onError(error: Throwable)
Link copied to clipboard
open override fun rawLaunch(context: CoroutineContext, start: CoroutineStart, block: suspend CoroutineScope.() -> Unit): Job
Link copied to clipboard
open suspend fun track(withLoading: MutableStateFlow<Int>?, onError: suspend (Throwable) -> Unit?, block: suspend () -> Unit)