async fn wait_for_connectivity(
execute_by: Instant,
offline_grace: Duration,
last_ok: &(dyn Fn() -> Instant + Send + Sync),
cancel: &CancellationToken,
) -> Result<(), AbortReason>Expand description
Polls every second until connectivity is fresh, the lease expires, or the run is cancelled.