Update limiter.js
This commit is contained in:
parent
e24cad5c6a
commit
602164d831
1 changed files with 3 additions and 2 deletions
5
node_modules/ws/lib/limiter.js
generated
vendored
5
node_modules/ws/lib/limiter.js
generated
vendored
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue