RemoteClientStates

Execution-owner-confined presentation-state store bounded by the current decoded screen and its negotiated entry limit. Keys combine a remote identity and a trusted type token; removed identities and terminal screens release their entries. Preparation runs before declaration evaluation, so incoming values never mutate state from a render callback.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard

Flushes current editable values once; nested action allocation never recursively flushes the store.

Link copied to clipboard
fun <T : Any> get(identity: Long, key: RemoteStateKey<T>): T

Reads a value previously prepared for the same typed identity without creating or mutating it.

Link copied to clipboard
fun <T : Any> prepare(identity: Long, key: RemoteStateKey<T>, create: () -> T, update: (T) -> Unit, release: (T) -> Unit = {})

Creates or updates a typed presentation value from a registered preparation callback. release runs exactly once when the value is retired, including terminal failure cleanup.