Skip to main content

deliver_with_retry

Function deliver_with_retry 

Source
pub async fn deliver_with_retry(
    deliver: impl FnMut() -> Result<(), Undelivered>,
    attempts: u32,
    gap: Duration,
) -> Result<(), String>
Expand description

deliver until it succeeds, at most attempts times, gap apart; the last error when none does. A pane that is gone isn’t waited for.