The scheduler for performing recomposition and applying updates to one or more Compositions.
Suspends until the currently pending recomposition frame is complete.
Retrieves Recomposer for the current thread.
Recomposer(embeddingContext: EmbeddingContext = EmbeddingContext())
suspend fun awaitIdle(): Unit
Suspends until the currently pending recomposition frame is complete. Any recomposition for this recomposer triggered by actions before this call begins will be complete and applied (if recomposition was successful) when this call returns.
fun hasPendingChanges(): Boolean
suspend fun recomposeAndApplyChanges(
Await the invalidation of any associated Composers, recompose them, and apply their changes to their associated Compositions if recomposition is successful. Any launched effects of composition will be launched into the receiver CoroutineScope.
This method returns after recomposing frameCount times.
suspend fun runRecomposeAndApplyChanges(): Nothing
This method never returns. Cancel the calling CoroutineScope to stop.
var embeddingContext: EmbeddingContext
val frameClock: MonotonicFrameClock