Skip to main content
Module

x/nice_threads/mod.ts

A promise wrapper for JavaScript Workers, batteries included for Deno and Node.
Latest
import * as niceThreads from "https://deno.land/x/nice_threads@0.9.0/mod.ts";

Classes

A promise-based web worker wrapper for easy thread creation at runtime.

A promise-based thread pool for easy management of threads.

Functions

Enable mock workers for single-threaded testing and validation. Use mocking for accurate debug traces and code coverage.

Disable mock workers for real multi-threaded validation. Running unmocked code is a reliable integration test.