Skip to content

Commit 9544b2c

Browse files
committed
docs: add some extra info for push jobs method use
1 parent df675ed commit 9544b2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example/readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ yarn --prod # npm install --only=prod
66
cd example
77
node index.js
88
```
9+
10+
pushNewJob returns a promise , if you need to throttle some how pushing new tasks in queue , use await , will resolves proportional of the current queue size.
11+
12+
This is usefull for hardware limitations , for big data sets. Otherwise dont await at all , create the promise and leave it.

0 commit comments

Comments
 (0)