{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

RecomposerKt

public final class RecomposerKt


Summary

Public methods

static final @NonNull R

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

Public methods

withRunningRecomposer

public static final @NonNull R <R extends Object> withRunningRecomposer(
    @ExtensionFunctionType @NonNull SuspendFunction2<@NonNull <Error class: unknown class>, @NonNull Recomposer, @NonNull R> block
)

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