A flexible task management library supporting TypeScript, allowing for task buffering, scheduling, and execution with dependency management.
Go to file
2019-11-27 23:34:45 +00:00
test fix(core): update 2019-09-23 18:06:43 +02:00
ts fix(core): update 2019-11-27 23:34:45 +00:00
.gitignore fix(core): update 2019-09-06 16:32:36 +02:00
.gitlab-ci.yml fix(core): update 2019-09-06 16:32:36 +02:00
.npmignore update dependencies 2016-09-02 18:11:33 +02:00
LICENSE Initial commit 2016-02-07 22:11:30 +01:00
npmextra.json fix(core): update 2019-09-06 16:32:36 +02:00
package-lock.json fix(core): update 2019-11-27 23:34:45 +00:00
package.json fix(core): update 2019-11-27 23:34:45 +00:00
readme.md fix(core): update 2019-09-06 16:32:36 +02:00
tslint.json fix(core): update 2019-01-15 00:17:44 +01:00

@pushrocks/taskbuffer

flexible task management. TypeScript ready!

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

Usage

We highly recommend TypeScript as this module supports TypeScript intellisense.

import * as taskbuffer from "taskbuffer";

myTask = new taskbuffer.Task({
  preTask: someOtherTask // optional, don't worry loops are prevented
  afterTask: someOtherTask // optional, don't worry loops are prevented
  name:"myTask1",
  buffered: true, // optional
  bufferMax: 3, // optional, call qeues greater than this are truncated
  execDelay: 1000, // optional, time in ms to wait before executing task call
  taskFunction:() => {
    // do some stuff and return promise
    // pass on any data through promise resolution
    // Use TypeScript for better understanding and code completion
  }
})

For further information read the linked docs at the top of this README.

MIT licensed | © Lossless GmbH

repo-footer

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer