parsimony/internal/queue
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 67ba07b642 feat(queue): Worker.Rate paces every send attempt
- Rate (sends per second, 0 = unlimited) builds one pacer, used right before Sender.Send
- the wait comes before the send timeout starts, so waiting does not eat into it
- a cancelled wait leaves the delivery queued, with no attempt recorded
- tests: 5 deliveries at 2/s take 4 intervals of fake time, rate 0 never waits, retries share the pacer,
  cancellation while waiting, and one short real-time test (20 sends at 200/s)
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 feat(queue): Worker.Rate paces every send attempt 2026-11-10 12:37:15 +01:00
queue_test.go feat(queue): Worker.Rate paces every send attempt 2026-11-10 12:37:15 +01:00