interface IWorkerNode
implements EventTarget
import { type IWorkerNode } from "https://deno.land/x/poolifier@v0.3.14/src/pools/worker.ts";
Worker node interface.
Type Parameters
Worker extends IWorker
Properties
readonly
worker: WorkerWorker.
readonly
info: WorkerInfoWorker info.
readonly
usage: WorkerUsageWorker usage statistics.
optional
strategyData: StrategyDataWorker choice strategy data. This is used to store data that are specific to the worker choice strategy.
readonly
optional
messageChannel: MessageChannelMessage channel (worker thread only).
Tasks queue back pressure size. This is the number of tasks that can be enqueued before the worker node has back pressure.
Whether the worker node has back pressure (i.e. its tasks queue is full).
readonly
getTaskFunctionWorkerUsage: (name: string) => WorkerUsage | undefinedGets task function worker usage statistics.