Function type that stops the outbox consumer and cleans up resources.
This function:
Promise that resolves when shutdown is complete
const stopOutbox = await outbox.start()process.on('SIGTERM', async () => { await stopOutbox() process.exit(0)}) Copy
const stopOutbox = await outbox.start()process.on('SIGTERM', async () => { await stopOutbox() process.exit(0)})
Function type that stops the outbox consumer and cleans up resources.
This function: