Offload functions to worker threads with shared memory primitives for Node.js.
Something went wrong. Try again.
feat: add isTask() type guard for narrowing tasks to a moroutine master
- Moroutines returned by mo() expose a readonly .id - isTask(mo, task) narrows task to Task<T, A> inferred from the moroutine's return type; useful when a pool handles tasks from multiple moroutines and you want to recover the specific shape - Task<T, A>.args is now typed as A (previously unknown[]), so narrowing propagates through task.args — backward compatible for Task<T> where A defaults to unknown[] 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, 5:07 AM UTC) Commit 4ef12db6 4ef12db64c8072e3dd9c51d9e2054868aa858983 Parent 25ea1c10 25ea1c104c69657e403327c8560aab5686f82dc1