Skip to content
easy-web-worker
Documentation

Small API.
Clear mental model.

Start with one method in a Worker. Add progress, cancellation and a pool as your application grows.

The mental model
01 / 03
math.worker.ts → main.ts
const worker = defineWorker(() => ({ fibonacci }));

const result = await math.fibonacci(40);
Worker thread
Main thread

Functions in the Worker.
Typed async calls everywhere else.

Find your way

A guide for every layer.

See it run before you read.

Five live examples, each with its tested source.

↑↓ Navigate ↵ Open Esc Closeeasy-web-worker docs
Get started

Real Web Workers. Typed methods.
Cancelable promises.