Skip to main content

drain_events_to_reply

Function drain_events_to_reply 

Source
pub fn drain_events_to_reply(
    cx: &mut Cx,
    source: &dyn EventSource,
) -> Result<EvalReply>
Expand description

Drains an EventSource into a single EvalReply.

Accumulates diagnostics and an optional trace, captures the final value, and stops at done. A Failed event is turned into an error, and a stream that ends without a final value is an error.