multi-tasks 2.0.7 → 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 +8 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,25 +108,19 @@ 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
|
|
130
124
|
- 2.0.7 Update changelog
|
|
131
125
|
- 2.0.6 Update readme, remove failed examples
|
|
132
126
|
- 2.0.5 Update readme examples
|