Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Blue committed Jun 7, 2016
1 parent 901faba commit 5074289
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,28 @@ $worker()
});
```

#### $worker().runAll()
Run all workers in a group. resolves promise when all workers are successful.

| Arg | Type | description |
| --------|---------|-------|
| data | * | the data to be posted (cannot be function) |

Example:
```JS
var workerGroup = $worker();

workerGroup.create( ... );
workerGroup.create( ... );

workerGroup
.runAll([...data])
.then(function () {
... do stuff
});
```


#### $worker().list()
Returns a list of all of the created workers

Expand Down

0 comments on commit 5074289

Please sign in to comment.