Worker.prototype.off - Node documentation
method Worker.prototype.off

Usage in Deno

import { Worker } from "node:worker_threads";
Worker.prototype.off(
event: "error",
listener: (err: Error) => void,
): this

Parameters

event: "error"
listener: (err: Error) => void

Return Type

this
Worker.prototype.off(
event: "exit",
listener: (exitCode: number) => void,
): this

Parameters

event: "exit"
listener: (exitCode: number) => void

Return Type

this
Worker.prototype.off(
event: "message",
listener: (value: any) => void,
): this

Parameters

event: "message"
listener: (value: any) => void

Return Type

this
Worker.prototype.off(
event: "messageerror",
listener: (error: Error) => void,
): this

Parameters

event: "messageerror"
listener: (error: Error) => void

Return Type

this
Worker.prototype.off(
event: "online",
listener: () => void,
): this

Parameters

event: "online"
listener: () => void

Return Type

this
Worker.prototype.off(
event: string | symbol,
listener: (...args: any[]) => void,
): this

Parameters

event: string | symbol
listener: (...args: any[]) => void

Return Type

this