Skip to main content

Module persist_subscriber

Module persist_subscriber 

Source

Modules§

layout_queue
The backend-to-frontend layout action queue of a layout row.
parked
Persisting a parked block: one in no tab (Command::ParkBlock, Command::AttachBlock).
resync

Functions§

apply_event_to_mstore
Apply one reducer event to the on-disk store. Idempotent: each arm checks for the entity’s current SQLite state before writing so duplicate events (from at-least-once delivery semantics) don’t produce duplicate rows or wcore errors.
apply_srv_window_closed
Phase E.5 — remove the id from Client.windowids, then delete the persisted Window row, in one transaction. Pruning FIRST means any read between the two ops doesn’t see a dangling id. (codex P1 #619.)
spawn_persist_subscriber
Spawn the persist subscriber task. Runs until the broadcast channel closes (i.e., the reducer’s bus is dropped at process shutdown). The state handle is read for the full resync after a RecvError::Lagged.