Skip to content

mapleincode/repeat-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published