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

x/poolifier/src/pools/pool.ts>TasksQueueOptions

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

Worker node tasks queue options.

Properties

readonly
optional
size: number

Maximum tasks queue size per worker node flagging it as back pressured.

readonly
optional
concurrency: number

Maximum number of tasks that can be executed concurrently on a worker node.

readonly
optional
taskStealing: boolean

Whether to enable task stealing on idle.

readonly
optional
tasksStealingOnBackPressure: boolean

Whether to enable tasks stealing under back pressure.

readonly
optional
tasksFinishedTimeout: number

Queued tasks finished timeout in milliseconds at worker node termination.