Offload functions to worker threads with shared memory primitives for Node.js.
Something went wrong. Try again.
refactor: make Task<T, A> a pure descriptor; keep protocols on live tasks master
Task<T, A> now carries result and arg types via brand symbols, without PromiseLike or AsyncIterable protocols. Live tasks returned by mo() intersect with the appropriate protocol for awaiting/iteration. Enables accurate result-type inference for helpers like map() that consume inert Task values — the bare descriptor can be yielded from a generator or held in arrays without triggering auto-await. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Author Devin Ivy Co-author Claude Opus 4.7 (1M context) Date (Apr 18, 2026, 4:46 AM UTC) Commit 065976f6 065976f6f803edfdded402298deec8d078320b19 Parent 86efc1c0 86efc1c0c66d4fd9b934eb320fa62cae2153e93a