Module

std/node/worker_threads.ts>Worker

Deno standard library
Go to Latest
class Worker
extends EventEmitter
import { Worker } from "https://dotland.deno.dev/std@0.177.0/node/worker_threads.ts";

Constructors

new
Worker(specifier: URL | string, options?: WorkerOptions)

Properties

private
readonly
[kHandle]: Worker
readonly
getHeapSnapshot: () => unknown
readonly
performance
postMessage: Worker["postMessage"]
readonly
resourceLimits: Required<NonNullable<WorkerOptions["resourceLimits"]>>
readonly
threadId: number