SyncChannelWorker
Nodepod API / src / SyncChannelWorker
Class: SyncChannelWorker
Section titled “Class: SyncChannelWorker”Defined in: src/threading/sync-channel.ts:141
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SyncChannelWorker(
buffer):SyncChannelWorker
Defined in: src/threading/sync-channel.ts:145
Parameters
Section titled “Parameters”buffer
Section titled “buffer”SharedArrayBuffer
Returns
Section titled “Returns”SyncChannelWorker
Methods
Section titled “Methods”allocateSlot()
Section titled “allocateSlot()”allocateSlot():
number
Defined in: src/threading/sync-channel.ts:151
Allocate a free slot; returns opaque handle (slot + generation). Never reuses in-flight slots.
Returns
Section titled “Returns”number
waitForResult()
Section titled “waitForResult()”waitForResult(
syncSlot,timeoutMs?):object
Defined in: src/threading/sync-channel.ts:171
Parameters
Section titled “Parameters”syncSlot
Section titled “syncSlot”number
timeoutMs?
Section titled “timeoutMs?”number = 120_000
Returns
Section titled “Returns”object
exitCode
Section titled “exitCode”exitCode:
number
stdout
Section titled “stdout”stdout:
string