Offload tasks to a pool of workers on node.js and in the browser
Overall
score
95%
A system for processing computational tasks using a background worker pool with convenient method access.
Build a task processing system that offloads mathematical computations to background workers. The system should provide a simple interface for calling worker methods without manually managing task execution.
Create a worker file that exposes the following computational methods:
Create a main application that:
@generates
/**
* Main entry point that demonstrates worker proxy usage.
* Initializes worker pool, processes tasks, and cleans up.
* @returns {Promise<void>}
*/
async function main() {
// Implementation here
}
module.exports = { main };Provides worker pool management and task execution capabilities.
Install with Tessl CLI
npx tessl i tessl/npm-workerpoolevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10