X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fabstract-pool.ts;h=a092dffde443b35d3c09fb8212b159ede3851c58;hb=f06cc469150312e33a65c59d01341e038922f0f1;hp=dc49dc8f6edada76925ddb66ae27b0224c9cce8c;hpb=14916bf9ec9e7e60b1c03e9b6d876fc23990afad;p=poolifier.git diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index dc49dc8f..a092dffd 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -100,7 +100,8 @@ export abstract class AbstractPool< Worker extends IWorker, Data = unknown, Response = unknown -> implements IPoolInternal { +> implements IPoolInternal +{ /** @inheritdoc */ public readonly workers: Worker[] = [] @@ -116,7 +117,7 @@ export abstract class AbstractPool< /** * The promise map. * - * - `key`: This is the message ID of each submitted task. + * - `key`: This is the message Id of each submitted task. * - `value`: An object that contains the worker, the resolve function and the reject function. * * When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message. @@ -127,7 +128,7 @@ export abstract class AbstractPool< > = new Map>() /** - * ID of the next message. + * Id of the next message. */ protected nextMessageId: number = 0