UNPKG

@hyperflake/job-scheduler

Version:

A simple and effective job scheduling module for Node.js, designed to manage and execute tasks based on cron-like schedules. This module utilizes `node-schedule` for precise timing and flexibility, making it ideal for applications that require specific ti

14 lines (13 loc) 358 B
type Unit = 'milliseconds' | 'seconds' | 'minutes' | 'hours'; export declare class JobScheduler { private jobMap; constructor(); schedule(jobName: string, timeout: { interval: number; unit: Unit; }, cb: () => void): void; cancel(jobName: string): void; invoke(jobName: string): void; destroy(): void; } export {};