CoroutineScope

fun CoroutineScope(context: CoroutineContext, lifecycle: Lifecycle): CoroutineScope(source)

Create a CoroutineScope in Decompose easily.

Return

a lifecycle-aware CoroutineScope

Parameters

context

the context used for the CoroutineScope.

lifecycle

the lifecycle the CoroutineScope is bound to.