@flowscripter/dynamic-cli-framework
    Preparing search index...

    Interface ShutdownTask

    A unit of work to run once during CLI shutdown, in ShutdownTask.priority order.

    interface ShutdownTask {
        id: string;
        priority?: number;
        run(): Promise<void>;
    }
    Index
    id: string

    Identifies this task, e.g. for debug logging when a shutdown task is slow or hangs.

    priority?: number

    Used to determine the order in which tasks run during shutdown. Higher values run earlier. Defaults to 0 if not specified; tasks with the same priority run in registration order.

    • Perform this task's shutdown work.

      Returns Promise<void>