Update limiter.js

This commit is contained in:
ZyLacx 2021-12-27 17:16:03 +01:00
parent e24cad5c6a
commit 602164d831

5
node_modules/ws/lib/limiter.js generated vendored
View file

@ -11,8 +11,8 @@ class Limiter {
/** /**
* Creates a new `Limiter`. * Creates a new `Limiter`.
* *
* @param {Number} concurrency The maximum number of jobs allowed to run * @param {Number} [concurrency=Infinity] The maximum number of jobs allowed
* concurrently * to run concurrently
*/ */
constructor(concurrency) { constructor(concurrency) {
this[kDone] = () => { this[kDone] = () => {
@ -27,6 +27,7 @@ class Limiter {
/** /**
* Adds a job to the queue. * Adds a job to the queue.
* *
* @param {Function} job The job to run
* @public * @public
*/ */
add(job) { add(job) {