Skip to main content

Module node_worker_threads

Module node_worker_threads 

Source

Enums§

WorkerIncoming
Outcome of a non-blocking poll of a worker’s main-thread inbox.

Functions§

install
worker_try_recv
Try to receive ONE pending worker → main message and, for data messages, deserialize the structured-clone bytes into rval inside the current thread’s persistent realm. Non-blocking; call from the main JS thread only. This is the primitive a worker.onmessage event-loop integration builds on.