* Handler Id of the `aliveInterval` worker alive check.
*/
protected readonly aliveInterval?: NodeJS.Timeout
- /**
- * Options for the worker.
- */
- public readonly opts: WorkerOptions
/**
* Constructs a new poolifier worker.
*
protected readonly isMain: boolean,
fn: (data: Data) => Response,
protected mainWorker: MainWorker | undefined | null,
- opts: WorkerOptions = {
+ protected readonly opts: WorkerOptions = {
/**
* The kill behavior option on this Worker or its default value.
*/
}
) {
super(type)
- this.opts = opts
this.checkFunctionInput(fn)
this.checkWorkerOptions(this.opts)
if (!this.isMain) {