pub struct DeferredCtx { /* private fields */ }Expand description
An owned, 'static late-emit handle obtained via Ctx::defer — the async-pool
boundary. An async node fn stashes one and emits LATER (the deferred result of
async work). The emit re-enters the wave engine as a FRESH external wave (its own
wave-owner / D30 catch boundary; the leading DIRTY is synthesized like any external
tier-3 emit, R-dirty-before-data). Holds the node handle (Core = an Rc) + the
dep snapshot at defer time.
Implementations§
Source§impl DeferredCtx
impl DeferredCtx
Sourcepub fn wave_data(&self) -> Vec<&[Vec<WaveData>]>
pub fn wave_data(&self) -> Vec<&[Vec<WaveData>]>
Raw dep-value input surface captured at defer time (R-ctx-wave-data / D77).
Sourcepub fn terminal(&self, i: usize) -> Option<&DepTerminal>
pub fn terminal(&self, i: usize) -> Option<&DepTerminal>
Terminal metadata for dep i, separate from captured wave_data.
Sourcepub fn data<U: 'static>(&self, i: usize) -> Option<Rc<U>>
pub fn data<U: 'static>(&self, i: usize) -> Option<Rc<U>>
Typed read of dep i’s latest DATA at defer time (SENTINEL → None).
Sourcepub fn batches<U: 'static>(&self, i: usize) -> Vec<Vec<Rc<U>>>
pub fn batches<U: 'static>(&self, i: usize) -> Vec<Vec<Rc<U>>>
Typed read of dep i’s captured DATA grouped by upstream wave.
Sourcepub fn batch<U: 'static>(&self, i: usize) -> Vec<Rc<U>>
pub fn batch<U: 'static>(&self, i: usize) -> Vec<Rc<U>>
Typed DATA payloads dep i delivered in the captured invocation, flattened
across upstream waves.
Sourcepub fn emit<T: 'static>(&self, v: T)
pub fn emit<T: 'static>(&self, v: T)
Emit one typed DATA downstream as the deferred async result.
Sourcepub fn down(&self, msgs: Wave<AnyValue>)
pub fn down(&self, msgs: Wave<AnyValue>)
Emit a raw wave downstream as the deferred async result (the ctx-level power surface, DR-1).