Minimal shape of a node:worker_threads Worker as used by this host.
node:worker_threads
Worker
Registers an event listener ('message' payloads arrive unwrapped; 'exit' receives the numeric exit code).
'message'
'exit'
Posts a structured-clonable message to the worker.
Terminates the worker; resolves with the exit code.
Minimal shape of a
node:worker_threadsWorkeras used by this host.