Function

withRunningRecomposer

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free

withRunningRecomposer

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]Job.join.