Expand description
Bounded asynchronous worker for loop analysis, event emission, and capture.
Structs§
- Atif
Capture - Structured ATIF representation attached to an asynchronous event job.
- Response
Attempt - Durable request/terminal marker embedded in the active event journal.
- Response
Permit - Reservation for the downstream response-capture worker job. Draws
from a distinct capacity semaphore so operators can tell via
av_events_dropped_total{stage="response_slot"}vsstage="worker_queue"which class of admission is the bottleneck. - Worker
AndResponse Permit - Fused reservation covering a worker job AND its downstream response slot. Acquired atomically at request admission: on any failure the worker slot (if already held) is released via RAII before the error surfaces, so callers cannot end up with an orphaned half-permit.
- Worker
Handle - Cloneable handle used by request handlers to submit worker jobs.
- Worker
Job - Work copied from the hot path for asynchronous processing.
- Worker
Permit - Guaranteed slot in the bounded worker queue.
Enums§
- Submit
Error - Non-blocking submission error.
Functions§
- spawn_
worker - Start the session-sharded worker pool (16 shards, each behind a bounded channel). Ordering is per session via hash sharding.
- spawn_
worker_ with_ sink - Start the worker pool with an explicit off-path vector sink.
- spawn_
worker_ with_ spool - Start the worker pool with vector persistence and optional ATIF journal.
- spawn_
worker_ with_ spool_ authenticated - Start the worker pool with authenticated active-workflow journals.