Skip to main content

Module session_gate

Module session_gate 

Source
Expand description

Per-session concurrency gate.

Prevents concurrent runs from interleaving writes to the same session. Each session is protected by its own tokio::sync::Mutex; a run acquires the lock at entry and holds it until the run completes or is cancelled.

Structsยง

SessionBusy
Error returned when a session is already being processed by another run.
SessionGate
Registry of per-session mutexes.
SessionGuard
RAII guard that holds a per-session lock for the duration of a run.