exframe-task-pool v1.3.5 is a lightweight Node.js library for queuing and executing tasks in a systematic, sequential or parallel manner. It supports task prioritization, concurrency limits, and lifecycle hooks (onStart, onComplete, onError). Suitable for Node >=14.0.0, with TypeScript definitions included. Updated infrequently via npm.
npm install exframe-task-poolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a TaskPool with concurrency 2, adds two tasks with different priorities, and starts execution.
Wrap synchronous tasks in Promise.resolve() or use async functions.
Replace pool.add(task) with pool.addTask(task, options).
Ensure all tasks are added before calling start() to avoid unexpected order.
Use import { TaskPool } from 'exframe-task-pool' or const { TaskPool } = require('exframe-task-pool').Ensure each task is an async function or returns a Promise.
No dependency data recorded yet.