interface ShutdownService

Service allowing registration of callbacks for CLI shutdown.

Methods

addShutdownListener(callback: () => Promise<void>): void

Register a callback method for CLI shutdown.

Usage

import type ShutdownService from ".";