Package dispatch.android.lifecycle

Types

Link copied to clipboard
object LifecycleScopeFactory

Factory holder for DispatchLifecycleScope's.

Functions

Link copied to clipboard
@ExperimentalCoroutinesApi
fun Fragment.withViewLifecycleScope(block: ViewLifecycleCoroutineScope.() -> Unit): Job

CoroutineScope helper for a Fragment's ViewLifecycleOwner.

Properties

Link copied to clipboard

CoroutineScope instance for the LifecycleOwner. By default, it uses the Dispatchers.Main.immediate dispatcher.

Link copied to clipboard
val LifecycleOwner.lifecycleScope: DispatchLifecycleScope

CoroutineScope instance for the LifecycleOwner. By default, it uses the Dispatchers.Main.immediate dispatcher.