Records a reservation made with requireFence and adds it to its day's open total.
Records a reservation and adds it to its day's open total.
Optional requireThe open reservations whose time is up and whose next check, when deferred, has come; an operation's row only once no run holds a live lease, listed at its recorded figure.
Defers an open reservation's next check.
Records an operation's row and run 1, or answers null when the operation has one. The check and the record are one synchronous step, so of two admissions of one operation made at once, one records the row.
The operation's row, copied.
A run's beginning; the store takes no lock and runs one call at a time on the event loop (see the class).
Readonly fencedIt holds fenced reservations.
Readonly operationIt holds operation reservations.
A store held in memory, for tests and for one process that admits one reservation at a time. It takes no lock, so two admissions awaited at once can both read the same total; a service that admits concurrently implements SpendDayStore on tables whose day row its transaction locks. It holds fenced and operation reservations, and each of its operation methods reads and writes its rows in one step on the event loop, before it awaits anything.