Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/paultje52/background-tasks
Queue background tasks for NodeJS on another thread
https://github.com/paultje52/background-tasks
Last synced: about 17 hours ago
JSON representation
Queue background tasks for NodeJS on another thread
- Host: GitHub
- URL: https://github.com/paultje52/background-tasks
- Owner: Paultje52
- License: gpl-3.0
- Created: 2020-08-06T16:54:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T10:47:18.000Z (about 3 years ago)
- Last Synced: 2024-11-20T00:40:57.717Z (2 months ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```js
const BackgroundTasks = require("background-tasks");
let threadManager = new BackgroundTasks();
threadManager.executeNow(() => {
// Do stuff on another thread!
});
```
For a compleat example, look [here](https://github.com/Paultje52/background-tasks/blob/master/test/index.js)!## Linkss
- [Github](https://github.com/Paultje52/background-tasks)
- [NPM](https://npmjs.com/background-tasks)
- [Documentation](https://github.com/Paultje52/background-tasks/wiki)