parsimony/internal/queue
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi b125c61fcf feat(queue): a pacer that spaces outgoing sends
- newPacer(perSecond, now, sleep): strictly spaced slots, no burst, safe for concurrent callers
- Wait reserves the next slot under a mutex and sleeps outside it
- a cancelled caller gives its slot back when it is the last one; a cancelled context returns at once
- a rate that is zero, negative, NaN or infinite means no pacer; a very low rate is capped at one interval of a year
- tests with an injected clock and sleep
2026-11-10 12:37:15 +01:00
..
pacer.go feat(queue): a pacer that spaces outgoing sends 2026-11-10 12:37:15 +01:00
pacer_test.go feat(queue): a pacer that spaces outgoing sends 2026-11-10 12:37:15 +01:00
queue.go perf(queue): purge old failures at most every 5 minutes and read each body once per run 2026-11-10 11:51:26 +01:00
queue_test.go perf(queue): purge old failures at most every 5 minutes and read each body once per run 2026-11-10 11:51:26 +01:00