class WorkerTaskTimeoutError
extends Error
Since 0.1.0

Thrown by run() when a task exceeds its timeout. The worker running the task is terminated and replaced — in-flight JavaScript cannot be cancelled.

Constructors

WorkerTaskTimeoutError(
taskModule: string,
timeoutMs: number
)

Properties

readonly
taskModule: string

The task-module specifier the timed-out task belonged to.

readonly
timeoutMs: number

The timeout that elapsed, in milliseconds.

Usage

import { WorkerTaskTimeoutError } from "worker-pool-plugin/src/index.ts";