(event: 'message' | 'error', callback: (arg: any) => void)
| 341 | off(event: 'message', callback: (message: WorkerResponse) => void): void |
| 342 | off(event: 'error', callback: (error: Error) => void): void |
| 343 | off(event: 'message' | 'error', callback: (arg: any) => void): void { |
| 344 | this._eventEmitter.off(event, callback) |
| 345 | } |
| 346 | |
| 347 | private emitWorkerError = (maybeError: unknown): void => { |
| 348 | const error = maybeError instanceof Error ? maybeError : new Error(String(maybeError)) |
no outgoing calls
no test coverage detected