Type Alias Stop

Stop: (() => Promise<void>)

Function that stops the OutboxConsumer instance.

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

      An empty promise.

const stop = await outbox.start()
// later...
// but remember it will happen automatically when `shouldDisposeOnSigterm` is set to `true`.
await stop()