Skip to content

Dispatcher

Defined in: src/dispatcher.ts:56

The delivery engine handle.

Property Modifier Type Defined in
running readonly boolean src/dispatcher.ts:67
start(): void;

Defined in: src/dispatcher.ts:58

Begin polling. Idempotent.

void


stop(): Promise<void>;

Defined in: src/dispatcher.ts:60

Stop polling and wait for in-flight attempts to finish.

Promise<void>


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).

Promise<number>