method ShutdownService.addShutdownListener
ShutdownService.addShutdownListener(callback: () => Promise<void>): void

Register a callback method for CLI shutdown.

Parameters

callback: () => Promise<void>

Return Type

void

Usage

import type ShutdownService from ".";