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

Recomposer.Companion

@ThreadLocal
public static class Recomposer.Companion


hack: the companion object is thread local in Kotlin/Native to avoid freezing _runningRecomposers with the current memory model. As a side effect, recomposers are now forced to be single threaded in Kotlin/Native targets.

This annotation WILL BE REMOVED with the new memory model of Kotlin/Native.

Summary

Public methods

static final @NonNull <Error class: unknown class><@NonNull Set<@NonNull RecomposerInfo>>

An observable Set of RecomposerInfos for currently running Recomposers.

Public methods

getRunningRecomposers

public static final @NonNull <Error class: unknown class><@NonNull Set<@NonNull RecomposerInfo>> getRunningRecomposers()

An observable Set of RecomposerInfos for currently running Recomposers. Emitted sets are immutable.