simple-job-scheduler
Version:
A simple job scheduling system written in TypeScript
14 lines (13 loc) • 469 B
TypeScript
export declare class Job {
readonly name: string;
readonly runnable: (job?: Job) => void;
readonly intervalInMillis: number;
private readonly cancelHandle;
private executionsCount;
private isCancelledState;
constructor(name: string, runnable: (job?: Job) => void, intervalInMillis: number, cancelHandle: () => boolean);
execute(): void;
getExecutionsCount(): number;
isCancelled(): boolean;
cancel(): boolean;
}