interface WorkerTaskRequest
Since 0.1.0

A task dispatch posted by the pool to a worker.

Properties

readonly
__hewp: 1

Protocol marker.

readonly
kind: "task"

Discriminant.

readonly
id: number

Correlation id, unique per pool.

readonly
input: unknown

Structured-clonable task input.

Usage

import { type WorkerTaskRequest } from "common/src/index.ts";