multi-tasks 2.1.3 → 2.1.5
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 +1 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,7 +13,6 @@ How to use:
|
|
|
13
13
|
//see examples/example0
|
|
14
14
|
let multiTasks = require('multi-tasks').multiTasks;
|
|
15
15
|
|
|
16
|
-
|
|
17
16
|
//Step1, create your tasks that need to be executed simultaneously as an array.
|
|
18
17
|
let alltasks = [];
|
|
19
18
|
for(let i=0;i<50;i++){
|
|
@@ -77,7 +76,6 @@ let processTask = (task, helper)=>{
|
|
|
77
76
|
//Example2, dynamically create a new task while processing
|
|
78
77
|
let processTask = (task, helper)=>{
|
|
79
78
|
let {taskCount} = task;
|
|
80
|
-
|
|
81
79
|
|
|
82
80
|
if(taskCount % 2 === 0){
|
|
83
81
|
//create a new task if needed
|
|
@@ -148,4 +146,4 @@ Github:
|
|
|
148
146
|
|
|
149
147
|
Support / Bug Report:
|
|
150
148
|
|
|
151
|
-
[
|
|
149
|
+
[zhangleisupport923@163.com](mailto:zhangleisupport923@163.com)
|