Skip to main content

ended_within

Function ended_within 

Source
pub async fn ended_within(
    work: impl Future<Output = ()>,
    failed: Receiver<bool>,
    bound: Duration,
) -> bool
Expand description

Runs work to its end, or until bound after failed turned true: whether it ended. failed closing without turning true bounds nothing.