Package-level declarations
Types
Link copied to clipboard
Type alias for a provider function that returns a CoroutineContext.
Link copied to clipboard
Type alias for a provider function that returns a CoroutineContext for a supervisor job.
Functions
Link copied to clipboard
inline fun createScopeWithContext(crossinline contextProvider: CoroutineContextProvider = { EmptyCoroutineContext }, supervised: Boolean = false): CoroutineScope
Creates a CoroutineScope with the given CoroutineContext and optional SupervisorJob.
Link copied to clipboard
inline fun rememberCoroutineScope(crossinline contextProvider: CoroutineContextProvider = { EmptyCoroutineContext }, supervised: Boolean = false): CoroutineScope
Provides a CoroutineScope that is remembered across recompositions.
inline fun rememberCoroutineScope(crossinline contextProvider: CoroutineContextProvider = { EmptyCoroutineContext }, crossinline supervisorContextProvider: SupervisorContextProvider = { SupervisorJob() }): CoroutineScope
Provides a CoroutineScope that is remembered across recompositions with a supervisor context provider.