multi-tasks 2.0.8 → 2.0.9

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.
Files changed (2) hide show
  1. package/README.md +3 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -78,7 +78,8 @@ let processTask = (task, helper)=>{
78
78
 
79
79
 
80
80
  if(taskCount % 2 === 0){
81
- helper.createNewTasks({//dynamically create a new task if find something new while processing
81
+ //create a new task if needed
82
+ helper.createNewTasks({
82
83
  msg:'a new task'
83
84
  });
84
85
  return;
@@ -104,22 +105,11 @@ let processTask = (task, helper)=>{
104
105
  }
105
106
 
106
107
 
107
- //Example4, dynamically create a new task while processing
108
- let processTask = (task, helper)=>{
109
- let {taskCount} = task;
110
-
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'};
118
- }
119
108
  ```
120
109
 
121
110
  Changelog:
122
111
 
112
+ - 2.0.9 Update readme examples
123
113
  - 2.0.8 Update readme examples
124
114
  - 2.0.7 Update changelog
125
115
  - 2.0.6 Update readme, remove failed examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multi-tasks",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "directories": {