Skip to main content

Module ttl_queue

Module ttl_queue 

Source
Expand description

A bounded FIFO queue with per-item TTL and lazy eviction.

Designed for service mailboxes: incoming messages sit in a queue until consumed or expired. Wasm-compatible (no std::time — caller supplies now as a Unix-epoch seconds value).

Structs§

TtlQueue
A bounded FIFO queue where each item carries an expiry timestamp.