repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test: spell fix
[poolifier.git]
/
src
/
pools
/
pool.ts
diff --git
a/src/pools/pool.ts
b/src/pools/pool.ts
index 92e399edf37bc51f2af2a45db428851f2e63be18..5c90ff77c8b3e62ea444bbb998f03ec53937dc1f 100644
(file)
--- a/
src/pools/pool.ts
+++ b/
src/pools/pool.ts
@@
-16,6
+16,7
@@
import type {
* Pool types.
*
* @enum
* Pool types.
*
* @enum
+ * @internal
*/
export enum PoolType {
/**
*/
export enum PoolType {
/**
@@
-60,6
+61,8
@@
export interface TasksQueueOptions {
/**
* Options for a poolifier pool.
/**
* Options for a poolifier pool.
+ *
+ * @typeParam Worker - Type of worker.
*/
export interface PoolOptions<Worker extends IWorker> {
/**
*/
export interface PoolOptions<Worker extends IWorker> {
/**
@@
-112,7
+115,7
@@
export interface PoolOptions<Worker extends IWorker> {
*
* @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 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,
*/
export interface IPool<
Worker extends IWorker,
@@
-138,18
+141,6
@@
export interface IPool<
* - `'busy'`: Emitted when the pool is busy.
*/
readonly emitter?: PoolEmitter
* - `'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.
*
/**
* Finds a free worker node key based on the number of tasks the worker has applied.
*