Skip to main content

Class: OutboxDispatcher

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:163

Sends what the outbox holds due.

Constructors​

Constructor​

new OutboxDispatcher(options): OutboxDispatcher

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:167

Parameters​

options​

OutboxDispatcherOptions

The outbox, the destinations and the send: OutboxDispatcherOptions.

Returns​

OutboxDispatcher

Methods​

deliverDue()​

deliverDue(): Promise<{ delivered: number; failed: number; }>

Defined in: packages/agentos/src/io/channels/meetings/delivery.ts:193

One pass over the due deliveries; answers how many were delivered and how many failed. A delivery whose destination resolve does not give, or rejects for, is marked failed, and the pass goes on. When the outbox has sendClaimed, each delivery is sent through it, and one it skips (gone, no longer pending, being sent already, or cancelled by a purge) counts as neither.

Returns​

Promise<{ delivered: number; failed: number; }>