Skip to content

Simple async task scheduler with catch-up for long running tasks

Notifications You must be signed in to change notification settings

KoryNunn/skeddy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

skeddy

Node.js Test Runner

Simple async task scheduler with catch-up for long running tasks

Why

If you want something to run every 10s and it takes a few seconds.

Usage

const createScheduler = require('skeddy');

const scheduler = createScheduler();

scheduler.add(function () {

    return new Promise(resolve => {
        console.log(Date.now(), 'I still run approx every 3 seconds.')

        setTimeout(resolve, Math.random() * 3000)
    })
}, 3000);

About

Simple async task scheduler with catch-up for long running tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published