method Worker.prototype.once Usage in Denoimport { Worker } from "node:worker_threads"; Worker.prototype.once(event: "error",listener: (err: Error) => void,): this Parameters event: "error" listener: (err: Error) => void Return Type this Worker.prototype.once(event: "exit",listener: (exitCode: number) => void,): this Parameters event: "exit" listener: (exitCode: number) => void Return Type this Worker.prototype.once(event: "message",listener: (value: any) => void,): this Parameters event: "message" listener: (value: any) => void Return Type this Worker.prototype.once(event: "messageerror",listener: (error: Error) => void,): this Parameters event: "messageerror" listener: (error: Error) => void Return Type this Worker.prototype.once(event: "online",listener: () => void,): this Parameters event: "online" listener: () => void Return Type this Worker.prototype.once(event: string | symbol,listener: (...args: any[]) => void,): this Parameters event: string | symbol listener: (...args: any[]) => void Return Type this