new exports.Queue(configopt)
- Description:
- Source:
Examples
//to define a queue with a default length of 5
const queue = new Queue()
//to define a queue with a specified length of 3
const queue = new Queue({maxConcurrency: 3})
Parameters:
Name |
Type |
Attributes |
Description |
config |
Object
|
<optional>
|
the config for asyncrify
Properties
Name |
Type |
Attributes |
Description |
maxConcurrency |
number
|
<optional>
|
The max amount of promises to run concurrently |
maxRetries |
number
|
<optional>
|
The max amount of promises to run concurrently |
timeout |
number
|
<optional>
|
The max amount of time in ms a promise can take to settle |
|