Dispatcher
Defined in: src/dispatcher.ts:56
The delivery engine handle.
Properties
Section titled “Properties”| Property | Modifier | Type | Defined in |
|---|---|---|---|
running |
readonly |
boolean |
src/dispatcher.ts:67 |
Methods
Section titled “Methods”start()
Section titled “start()”start(): void;Defined in: src/dispatcher.ts:58
Begin polling. Idempotent.
Returns
Section titled “Returns”void
stop()
Section titled “stop()”stop(): Promise<void>;Defined in: src/dispatcher.ts:60
Stop polling and wait for in-flight attempts to finish.
Returns
Section titled “Returns”Promise<void>
tick()
Section titled “tick()”tick(): Promise<number>;Defined in: src/dispatcher.ts:66
Run one manual pass: claim due deliveries, attempt them, record outcomes. Returns the number of attempts made — the unit-test surface (tests never assert on timers).
Returns
Section titled “Returns”Promise<number>