1.2.0 • Published 6 years ago

repeat-task v1.2.0

Weekly downloads
5
License
ISC
Repository
github
Last release
6 years ago

repeat-task

a simple tool to run the repeat tasks;

Explain

a simple tool to run the repeat tasks;

Usage

const Task = require('repeat-task');

const t = new Task();

// add tasks
t.addTask('TaskName1', task1, taskIntervalTime1, {
    timing: true
});
t.addTask('TaskName2', task2, taskIntervalTime2, {
    timing: true
});

// run
t.run();

// listen log
t.on('log', function(log) {
    console.log(log);
});

//listen error
t.on('error', function(err) {
    console.error(err);
});
1.2.0

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago