multi-tasks 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/examples/example0/run.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ How to use:
|
|
|
14
14
|
let multiTasks = require('multi-tasks').multiTasks;
|
|
15
15
|
//You need to provide the data of all subtasks, multi-tasks will automatically split them and execute them in a multi-threaded manner
|
|
16
16
|
let alltasks = [];
|
|
17
|
-
for(let i=0;i<
|
|
17
|
+
for(let i=0;i<100;i++){
|
|
18
18
|
let task_props = {
|
|
19
19
|
index: i,
|
|
20
20
|
name: `task-${i}`,
|
|
@@ -71,6 +71,7 @@ node examples/example1/run
|
|
|
71
71
|
|
|
72
72
|
Changelog:
|
|
73
73
|
|
|
74
|
+
- 1.2.3 Update README
|
|
74
75
|
- 1.2.2 Update README and examples
|
|
75
76
|
- 1.2.1 Handle exceptions and errors in subtasks
|
|
76
77
|
- 1.2.0 Simplified usage by providing the function way and support return Promise
|
package/examples/example0/run.js
CHANGED
|
@@ -2,7 +2,7 @@ let multiTasks = require('../../index').multiTasks;
|
|
|
2
2
|
|
|
3
3
|
//You need to provide the data of all subtasks, multi-tasks will automatically split them and execute them in a multi-threaded manner
|
|
4
4
|
let alltasks = [];
|
|
5
|
-
for(let i=0;i<
|
|
5
|
+
for(let i=0;i<100;i++){
|
|
6
6
|
let task_props = {
|
|
7
7
|
index: i,
|
|
8
8
|
name: `task-${i}`,
|