Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/poolifier/src/utility-types.ts>Task

Fast and small web worker pool
Latest
interface Task
import { type Task } from "https://deno.land/x/poolifier@v0.3.14/src/utility-types.ts";

Message object that is passed as a task between main worker and worker.

Type Parameters

optional
Data = unknown

Properties

readonly
optional
name: string

Task name.

readonly
optional
data: Data

Task input data that will be passed to the worker.

readonly
optional
transferList: Transferable[]

Array of transferable objects.

readonly
optional
timestamp: number

Timestamp.

readonly
optional
taskId: string

Task UUID.