X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fpools%2Fpool.ts;h=5c90ff77c8b3e62ea444bbb998f03ec53937dc1f;hb=89b09b2646d240a5a30531b2fc742fdba209fa13;hp=92e399edf37bc51f2af2a45db428851f2e63be18;hpb=bb3f9b66fa2241864d31937eeced22caab83d17e;p=poolifier.git diff --git a/src/pools/pool.ts b/src/pools/pool.ts index 92e399ed..5c90ff77 100644 --- a/src/pools/pool.ts +++ b/src/pools/pool.ts @@ -16,6 +16,7 @@ import type { * Pool types. * * @enum + * @internal */ export enum PoolType { /** @@ -60,6 +61,8 @@ export interface TasksQueueOptions { /** * Options for a poolifier pool. + * + * @typeParam Worker - Type of worker. */ export interface PoolOptions { /** @@ -112,7 +115,7 @@ export interface PoolOptions { * * @typeParam Worker - Type of worker which manages this pool. * @typeParam Data - Type of data sent to the worker. This can only be serializable data. - * @typeParam Response - Type of response of execution. This can only be serializable data. + * @typeParam Response - Type of execution response. This can only be serializable data. */ export interface IPool< Worker extends IWorker, @@ -138,18 +141,6 @@ export interface IPool< * - `'busy'`: Emitted when the pool is busy. */ readonly emitter?: PoolEmitter - /** - * Whether the pool is full or not. - * - * The pool filling boolean status. - */ - readonly full: boolean - /** - * Whether the pool is busy or not. - * - * The pool busyness boolean status. - */ - readonly busy: boolean /** * Finds a free worker node key based on the number of tasks the worker has applied. *