import type { Draft, MessageValue } from '../../utility-types'
import { AbstractPool } from '../abstract-pool'
import type { PoolOptions } from '../pool'
-import { PoolType } from '../pool-internal'
+import { PoolType } from '../pool'
/**
* A thread worker with message channels for communication between main thread and thread worker.
}
/** @inheritDoc */
- public registerWorkerMessageListener<Message extends Data | Response>(
+ protected registerWorkerMessageListener<Message extends Data | Response>(
messageChannel: ThreadWorkerWithMessageChannel,
listener: (message: MessageValue<Message>) => void
): void {
}
/** @inheritDoc */
- public get full (): boolean {
+ protected get full (): boolean {
return this.workerNodes.length === this.numberOfWorkers
}
/** @inheritDoc */
- public get busy (): boolean {
+ protected get busy (): boolean {
return this.internalBusy()
}
}