+ this.workerOptions.poolOptions?.messageHandler?.bind(this);
+ this.workerOptions.poolOptions.errorHandler = (
+ this.workerOptions?.poolOptions?.errorHandler ?? defaultErrorHandler
+ ).bind(this) as ErrorHandler<Worker>;
+ this.workerOptions.poolOptions?.onlineHandler?.bind(this);
+ this.workerOptions.poolOptions.exitHandler = (
+ this.workerOptions?.poolOptions?.exitHandler ?? defaultExitHandler
+ ).bind(this) as ExitHandler<Worker>;