Skip to main content

Module optimistic

Module optimistic 

Expand description

Latency-hiding action lifecycle for a UI backed by a remote model host.

The UI always renders a local Automerge replica. Actions apply to that replica immediately and enter this queue; a transport sends the returned envelopes to the authoritative host. Confirmations advance a private confirmed replica in submission order. A rejection or concurrent host update rebuilds the optimistic replica from confirmed state and replays every still-pending action with fresh dependency-correct envelopes.

Structs§

OptimisticQueue
A local optimistic replica plus the confirmed baseline it can rebuild from.
RebaseBatch
Envelopes invalidated by a rejection or authoritative merge, and their dependency-correct replacements. Send outbound in order; late replies naming a superseded id are safely ignored by OptimisticQueue.

Enums§

Acknowledgement
Result of an acknowledgement. Stale means the id was already replaced during a rebase or was never part of this session.
OptimisticError