pub struct Posts(/* private fields */);Expand description
The calls of JS functions Rust posts (super::Callback::post,
call_async) for the next JS turn, in one ordered queue. One per
engine, made by it and handed to nsh-js and the core. Cheap to clone.
The calls run in the order they were posted, with one exception that
keeps JS’s program order: a call posted during a synchronous call from
JS is parked in its place until the op JS sent after it is applied
(RustCall::Post), and what the ops before that one post while the
core applies them goes before it. So a call a task posts after the
synchronous call runs after it, and one an op JS sent before the call
posts runs before it. The queue runs up to the first place not
released yet; a place is released whichever way its op goes (applied,
or dropped unapplied: [ParkedPost]), so no lost op stalls it.