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

x/poolifier/src/mod.ts

Fast and small web worker pool
Latest
import * as poolifier from "https://deno.land/x/poolifier@v0.3.14/src/mod.ts";

Classes

c
AbstractPool
abstract

Base class that implements some shared logic for all poolifier pools.

Base class that implements some shared logic for all poolifier workers.

Array with a maximum length and shifting items when full.

Deque. Implemented with a doubly linked list.

A thread pool with a dynamic number of threads, but a guaranteed minimum number of threads.

A thread pool with a fixed number of threads.

A thread worker used by a poolifier ThreadPool.

The worker choice strategy context.

Variables

Returns safe host OS optimized estimate of the default amount of parallelism a pool should use. Always returns a value greater than zero.

Enumeration of kill behaviors.

Enumeration of measurements.

Enumeration of pool events.

Enumeration of pool types.

Enumeration of worker choice strategies.

Enumeration of worker types.

Interfaces

Event loop utilization measurement statistics.

Linked list node interface.

Contract definition for a poolifier pool.

Worker interface.

Worker choice strategy interface.

Worker node interface.

Measurement options.

Measurement statistics.

Measurement statistics requirements.

Message object that is passed between main worker and worker.

Pool information.

Options for a poolifier pool.

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

Worker choice strategy data.

Strategy policy.

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

Task function operation result.

Task performance.

Worker node tasks queue options.

Task statistics.

Pool worker node worker usage statistics requirements.

Worker choice strategy options.

Worker error.

Worker information.

Worker node event detail.

Worker node options.

Options for workers.

Worker task performance statistics computation settings.

Worker usage statistics.

Type Aliases

Callback invoked if the worker raised an error event.

Kill behavior.

Handler called when a worker is killed.

Measurement.

Callback invoked if the worker raised an error at processing a message event.

Callback invoked if the worker has received a message event.

Pool event.

Pool type.

Task asynchronous function that can be executed. This function must return a promise.

Task function that can be executed. This function can be synchronous or asynchronous.

Tasks functions that can be executed. This object can contain synchronous or asynchronous functions. The key is the name of the function. The value is the function itself.

Task synchronous function that can be executed.

Options for a poolifier thread pool.

Worker choice strategy.

Worker type.