Skip to content
Paul edited this page Aug 7, 2020 · 3 revisions

Welcome to the background-tasks documentation!

Here you can find everything you need to know to start your background tasks on other threads in NodeJs!

JavaScript is designed as a single-thread programming language. That means that if your application needs to do some math that takes time, the whole application is blocked.

To solve this, I made background-tasks, for NodeJS. With it, you can start and queue function executions on another thread! It’s made to be as easy to use as possible, but there are some limitations.
The biggest limitation is variables. It’s important to know how variables work. Please click here to read how variables work.

Installation

Install background-tasks with npm or yarn.

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

Example

To see a compleat example, click here!

Clone this wiki locally