CSSafeChangeDelivery

Controls how concurrent unsafe changes from multiple sources are delivered to a combined callback (tuple onUnsafeChange, safeStateDelegate).

All modes update the internal cached values atomically; they differ only in how the resulting callbacks are scheduled.

Entries

Link copied to clipboard

Latest-wins. Callbacks are serialized; intermediate snapshots may be coalesced into the newest one, but the last delivered value is never stale. O(1) memory. Correct default for derived state where only the current value matters.

Link copied to clipboard

Lossless FIFO. Every snapshot is delivered, in order, exactly once. Unbounded queue. Use when each transition has a side effect that must not be dropped (event stream).

Link copied to clipboard

No serialization. The snapshot is taken under lock and fired immediately on the writing thread. Lowest overhead, but concurrent emissions can be delivered out of order (a stale snapshot can arrive last). Only for callbacks that recompute from .value and tolerate the race.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.