pub async fn ended_within(
work: impl Future<Output = ()>,
failed: Receiver<bool>,
bound: Duration,
) -> boolExpand description
Runs work to its end, or until bound after failed turned true: whether it ended.
failed closing without turning true bounds nothing.