Pure, so the whole state machine is testable without a Durable Object, an alarm or a socket --
which matters because the interesting cases are the ones that are awkward to reach live: an entry
that expired between the queue and the read, and a queue row whose budget is spent.
Decides the state from what the tables hold.
Pure, so the whole state machine is testable without a Durable Object, an alarm or a socket -- which matters because the interesting cases are the ones that are awkward to reach live: an entry that expired between the queue and the read, and a queue row whose budget is spent.