Staticidthe id
StaticinWhether this code runs in a request or surface worker THREAD — the one
test every caller that used to ask process.send asks instead.
true in a worker thread that has a parent port
StaticoffRemoves a listener on() installed.
what on() returned
StaticonListens for messages from the front process, each revived (Buffers).
The listener returned is the one to hand to off().
called with each message
the installed listener, or null outside a worker thread
StaticprocessThe pid, and the thread when this is not the main one: for what used the pid to tell processes apart (a claim holder, a per-process run key).
pid or pid.threadId
StaticreviveTurns every Uint8Array that is not a Buffer, at any depth, back into a Buffer over the same memory. Arrays and plain objects are walked in place; anything else is returned as it is.
a received message or part of one
the value, revived
StaticsendSends a message to the front process. A no-op outside a worker thread, which is what a module loaded in the front or by a test wants.
a structured-clonable value
true when it was posted
This thread's identity: the
threadIdin a worker thread, the pid in the main thread. Numeric, so it fits thests_poolpin cookie as the pid did.