Skip to content

Commit

Permalink
fixes async example
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoputzer committed Mar 20, 2017
1 parent 5875860 commit 6a1e08c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "m.queue",
"version": "1.0.2",
"version": "1.0.3",
"description": "m(icro)queue is a lightweight es6+ library that exports an asynchronous function queue with adjustable concurrency",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const {async} = require('m.queue')

const queue = async(function worker (arg0, arg1, callback) {
if (err) {
done(err)
callback(err)
return
}
callback([err], arg0, arg1)
callback(null, arg0, arg1)
}, 10)
```

Expand Down

0 comments on commit 6a1e08c

Please sign in to comment.