1.0.0 • Published 5 years ago

background-tasks v1.0.0

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
5 years ago

Background-Tasks

Queue background tasks for NodeJS on another thread!

Requires NodeJS V12.5 or higher!

Installation

  • NPM: npm i -s background-tasks
  • Yarn: yarn add background-tasks

Example

const BackgroundTasks = require("background-tasks");
let threadManager = new BackgroundTasks();
threadManager.executeNow(() => {
  // Do stuff on another thread!
});

For a compleat example, look here!

Linkss