Function

withRunningRecomposer

Runs block with a new, active Recomposer applying changes in the calling CoroutineContext.

withRunningRecomposer

Source set: Common
public suspend fun <R> withRunningRecomposer(
    block: suspend CoroutineScope.(recomposer: Recomposer) -> R
): R

Runs block with a new, active Recomposer applying changes in the calling CoroutineContext. The Recomposer will be closed after block returns. withRunningRecomposer will return once the Recomposer is Recomposer.State.ShutDown and all child jobs launched by block have joined.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: