Module

std/node/worker_threads.ts

Deno standard library
Go to Latest
class Worker
extends EventEmitter
import { Worker } from "https://deno.land/std@0.145.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

Methods

terminate()