Optional
concurrencyInfinity
Optional
maxIf the queue size grows to larger than this number the promise returned from the add function will reject
Infinity
Optional
metricThe name of the metric for the queue length
Optional
metricsAn implementation of the libp2p Metrics interface
Optional
sortAn optional function that will sort the queue after a job has been added
Concurrency limit.
Minimum:
1
.