/**
* Internal pool types.
+ *
+ * @enum
*/
export enum PoolType {
FIXED = 'fixed',
/**
* Internal worker type.
*
- * @typeParam Worker - Type of worker which manages this pool.
+ * @typeParam Worker - Type of worker type items which manages this pool.
*/
export interface WorkerType<Worker extends IPoolWorker> {
worker: Worker
*
* If a worker is found with `0` running tasks, it is detected as free and its key is returned.
*
- * If no free worker is found, `false` is returned.
+ * If no free worker is found, `-1` is returned.
*
* @returns A worker key if there is one, `-1` otherwise.
*/