collect_events_until_idle

Function collect_events_until_idle 

Source
pub async fn collect_events_until_idle(
    rx: &mut Receiver<LiveEvent>,
    idle: Duration,
    max: Duration,
) -> Vec<LiveEvent>
Expand description

Collect LiveEvents until the stream stays idle for idle (or max elapses). Useful for settling an as-fast-as-possible replay where “done” means “no more effects are propagating”.