@japofc/baileys - v2.4.7
    Preparing search index...

    Interface ShutdownManager

    interface ShutdownManager {
        hookCount: number;
        isShuttingDown: boolean;
        attach(): () => void;
        detach(): void;
        onDone(cb: (result: ShutdownResult) => void): () => void;
        register(name: string, fn: () => void | Promise<void>): () => void;
        register(fn: () => void | Promise<void>): () => void;
        shutdown(reason?: string): Promise<ShutdownResult>;
    }
    Index
    hookCount: number
    isShuttingDown: boolean
    • Listen for the configured signals. Returns a detach function.

      Returns () => void

    • Add a teardown hook (runs in registration order). Returns a remover.

      Parameters

      • name: string
      • fn: () => void | Promise<void>

      Returns () => void

    • Parameters

      • fn: () => void | Promise<void>

      Returns () => void