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

x/poolifier/src/mod.ts>PromiseResponseWrapper

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

An object holding the task execution response promise resolve/reject callbacks.

Type Parameters

optional
Response = unknown

Properties

readonly
resolve: (value: Response | PromiseLike<Response>) => void

Resolve callback to fulfill the promise.

readonly
reject: (reason?: unknown) => void

Reject callback to reject the promise.

readonly
workerNodeKey: number

The worker node key executing the task.