multi-tasks 2.0.6 → 2.0.8
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 +10 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,25 +108,21 @@ let processTask = (task, helper)=>{
|
|
|
108
108
|
let processTask = (task, helper)=>{
|
|
109
109
|
let {taskCount} = task;
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}else{
|
|
119
|
-
resolve({
|
|
120
|
-
data:`task${taskCount} complete`
|
|
121
|
-
})
|
|
122
|
-
}
|
|
123
|
-
}, 10)
|
|
124
|
-
})
|
|
111
|
+
if(taskCount % 2 === 0){
|
|
112
|
+
helper.createNewTasks({//create a new task if needed
|
|
113
|
+
msg:'a new task'
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {data:'succ'};
|
|
125
118
|
}
|
|
126
119
|
```
|
|
127
120
|
|
|
128
121
|
Changelog:
|
|
129
122
|
|
|
123
|
+
- 2.0.8 Update readme examples
|
|
124
|
+
- 2.0.7 Update changelog
|
|
125
|
+
- 2.0.6 Update readme, remove failed examples
|
|
130
126
|
- 2.0.5 Update readme examples
|
|
131
127
|
- 2.0.4 Support resume from a failed task
|
|
132
128
|
- 2.0.3 Fix: mkdir bug on windows
|