TreeState

sealed interface TreeState(source)

Lifecycle state of a retained UI tree.

The state transitions from Active to Poisoned after a post-validation or pipeline failure. It transitions from Active to Closed when close begins. Non-active states reject operational work. Poisoned permits close, which transitions it to Closed. Closed is terminal and later close calls are no-ops.

Inheritors

Types

Link copied to clipboard
data object Active : TreeState

The tree accepts operational work.

Link copied to clipboard
data object Closed : TreeState

The tree has completed close processing.

Link copied to clipboard
data object Poisoned : TreeState

A pipeline or lifecycle failure has made the tree unusable except for close.