1.0.3 • Published 3 years ago

delay-task v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

delay-task NPM version NPM monthly downloads NPM total downloads Linux Build Status

Cache requires to be lazy-loaded when needed.

Install

Install with npm:

$ npm install --save delay-task

功能

这个类似循环执行的模块。这delay-task 多了可以取消的。允许任务一次又一次延时。
执行后上一次的执行效果被取消 你就可以用这个模块.多次调用run, 只在最后一次,或者延时最低时间内执行。
,为确保执行最后一个任务,每个任务都被延时一定时间执行,上一个任务被视为无效被取消 同时兼顾了 在距离上次执行多长时间内必须再次执行的效果

let DelayTask: new (action: Function, opt: {
    allowCancleInterval: number;// 允许内取消的时间(ms)
    maxRunInterval: number; // 最大必须执行的(ms)
}) => DelayTask
1.0.3

3 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago