Context object passed into a child thread entrypoint.
Generic parameters are expressed from the child's point of view:
InitialData: initial payload supplied by the parent
SendData: values sent from the child to the parent via send
UpdateData: values published from the child to the parent via update
RecvData: values received from the parent via recv
value: InitialData
Initial payload provided when the thread or job was started.
Send a message from the child thread back to the parent handle.
ThreadContext:send(value: SendData) → ()
Parameters
value: SendData
Message payload delivered to the parent through handle:recv().
Publish a progress update for a pooled or worker-backed job.
Updates are surfaced on the parent-side future through future.update
and future.onUpdate.
ThreadContext:update(value: UpdateData) → ()
Parameters
value: UpdateData
Progress payload to publish to the parent runtime.
Wait for the next message from the parent.
ThreadContext:recv() → RecvData
Returns
RecvData
Next payload sent from the parent thread or pooled caller.