UNPKG

summarizely-cli

Version:

YouTube summarizer that respects your existing subscriptions. No API keys required.

22 lines 920 B
import { FileCache } from './cache'; export type ShutdownHandler = () => Promise<void> | void; export declare class ShutdownManager { private handlers; private isShuttingDown; private shutdownPromise; constructor(); private setupSignalHandlers; register(handler: ShutdownHandler): void; shutdown(signal: string): Promise<void>; private executeHandlers; forceShutdown(exitCode?: number): Promise<void>; } export declare function getShutdownManager(): ShutdownManager; export declare function registerShutdownHandler(handler: ShutdownHandler): void; export declare const commonHandlers: { flushCache: (cache: FileCache) => ShutdownHandler; saveMetrics: (metrics: any) => ShutdownHandler; closeDatabaseConnections: (connections: any[]) => ShutdownHandler; waitForPendingRequests: (requests: Set<Promise<any>>) => ShutdownHandler; }; //# sourceMappingURL=shutdown.d.ts.map