Offload functions to worker threads with shared memory primitives for Node.js.

refactor(serve): simplify ListenArgs — pass single Int32Atomic counter master

Instead of passing the entire counters tuple + slot index, pass the individual Int32Atomic for this worker's slot. Simpler signature, fewer args, less indirection in listen(). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>


+16 -23
4 changed files