StateValue

class StateValue<T> : Output<T>

Used to represent the value of a Component's State. Must be used to pass State as parameter in methods annotated with @OnUpdateState.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun get(): T?
Link copied to clipboard
fun set(t: T?)

Assumed thread-safe because the one write is before all the reads