Demo
An interactive demo (demo/) covers every composable against a real browser, not just unit tests: useWorker vs. main-thread with a "longest UI freeze" metric (not a completion-time race — see async/await vs. a real thread for why that would be misleading), transferables, real parallel speedup via createWorkerPool, useWorkerComputed, error handling, and useSharedWorker. Four more sections show the cancellation and concurrency features: a live search with concurrency: 'latest' and hardCancelOnAbort, a long loop you can cancel with and without ctx.yield(), a pool that survives a crashed worker, and typed operations through call(). For the last one, open a second tab from inside the demo: portCount updates live in both, and a workerInstanceId — generated once by the worker itself, not per tab — matches in both, concrete proof they share one worker instance.
git clone https://github.com/macrulezru/vue-worker-kit.git
cd vue-worker-kit
npm install --prefix demo
npm run demoOpens at http://localhost:5173.
The standalone cancel-yield.html stand measures how many yield() calls a loop makes after cancel(). npm run test:browser runs it 100 times in Chromium, Firefox and WebKit (npx playwright install chromium firefox webkit once) and checks that the loop stops within two yield() calls.