def outbox.next
import bend-kit-commands@0.4.0.0/commands.bend as Commandsimport Base
432# The oldest undelivered effect.
433def outbox.next(st: Store) -> Run(Maybe<Pending>):
434 Store{db, begin, commit, rollback, find, read, save, del, keep, emit} = st
435 once(Maybe<Pending>, db, "SELECT seq, id, effect FROM commands_outbox ORDER BY seq LIMIT 1", +s => outbox.first(s))
Uses (6)
Used by (0)
No other definition uses this definition.