UNPKG

redis-smq-common

Version:

RedisSMQ Common Library provides many components that are mainly used by RedisSMQ and RedisSMQ Monitor.

11 lines 459 B
import { TFunction } from '../async/index.js'; import { EventEmitter } from '../event/index.js'; import { TTimer, TTimerEvent } from './types/index.js'; export declare class Timer extends EventEmitter<TTimerEvent> { protected timer: TTimer | null; protected onTick: () => void; setTimeout(fn: TFunction, timeout: number): boolean; setInterval(fn: TFunction, interval?: number): boolean; reset(): void; } //# sourceMappingURL=timer.d.ts.map