pub async fn send_with_retry<F, Fut, T>(
f: F,
opts: &RetryOptions,
) -> ApiResult<T>Expand description
Retry a future-producing closure on ApiError::RateLimit.
If the API returns a ratelimit-reset header, that value (in seconds) is
used as the sleep duration. Otherwise, opts.base_delay_ms is used.