Package-level declarations

Types

Link copied to clipboard
interface ComponentModel : ComponentContext
Link copied to clipboard

Properties

Link copied to clipboard
val ComponentModel.componentScope: CoroutineScope

Functions

Link copied to clipboard
fun CoroutineScope(context: CoroutineContext, lifecycle: Lifecycle): CoroutineScope

Create a CoroutineScope in Decompose easily.

Link copied to clipboard
fun LifecycleOwner.coroutineScope(context: CoroutineContext): CoroutineScope

Extension function to create a CoroutineScope on the current Lifecycle.

Link copied to clipboard
fun LifecycleOwner.defaultScope(): CoroutineScope

Extension function to create a CoroutineScope on the current Lifecycle using the platform defaultDispatcher.

Link copied to clipboard
fun LifecycleOwner.ioScope(): CoroutineScope

Extension function to create a CoroutineScope on the current Lifecycle using the platform ioDispatcher.

Link copied to clipboard
fun LifecycleOwner.launchDefault(block: suspend CoroutineScope.() -> Unit): Job

Extension function to launch a CoroutineScope on the current Lifecycle using the platform defaultDispatcher.

Link copied to clipboard
fun LifecycleOwner.launchIO(block: suspend CoroutineScope.() -> Unit): Job

Extension function to launch a CoroutineScope on the current Lifecycle using the platform ioDispatcher.

Link copied to clipboard
fun LifecycleOwner.launchMain(block: suspend CoroutineScope.() -> Unit): Job

Extension function to launch a CoroutineScope on the current Lifecycle using the platform mainDispatcher.

Link copied to clipboard
fun LifecycleOwner.mainScope(): CoroutineScope

Extension function to create a CoroutineScope on the current Lifecycle using the platform mainDispatcher.