Skip to main content
Module

std/node/worker_threads.ts>Worker

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class Worker
extends EventEmitter
import { Worker } from "https://deno.land/std@0.131.0/node/worker_threads.ts";

Constructors

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

Properties

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