Skip to main content

Built and signed on GitHub Actions

Fast and small web worker pool

This package works with Deno, Bun, BrowsersIt is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Cloudflare Workers
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
5 months ago (0.4.31)
interface TaskFunctionObject

Task function object.

Type Parameters

Data = unknown
  • Type of data sent to the worker. This can only be structured-cloneable data.
Response = unknown
  • Type of execution response. This can only be structured-cloneable data.

Properties

optional
priority: number

Task function priority. Lower values have higher priority.

Task function worker choice strategy.

Add Package

deno add jsr:@poolifier/poolifier-web-worker

Import symbol

import { type TaskFunctionObject } from "@poolifier/poolifier-web-worker";

---- OR ----

Import directly with a jsr specifier

import { type TaskFunctionObject } from "jsr:@poolifier/poolifier-web-worker";

Add Package

bunx jsr add @poolifier/poolifier-web-worker

Import symbol

import { type TaskFunctionObject } from "@poolifier/poolifier-web-worker";