Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erozx/js-multi-thread-request
https://github.com/erozx/js-multi-thread-request
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/erozx/js-multi-thread-request
- Owner: erozx
- Created: 2024-07-18T15:55:06.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-18T16:01:10.000Z (6 months ago)
- Last Synced: 2024-09-11T18:56:04.319Z (4 months ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use?
```js
// make the object
const task = new RequestWorker(task_id,task_url,task_name,executeOnUpdate);// start the worker
task.start();// stop the worker
task.stop();// list all current running task
RequestWorker.listRunningTasks();// stop specific running task
RequestWorker.stopTask(task_id,task_url,task_name);
```