pub async fn rate_limit_retry_after(
rl: &RequestRateLimit,
retry_after_secs: u64,
)Expand description
Record a server-returned Retry-After delay.
Call this when the upstream API responds with HTTP 429 and a Retry-After
header. Subsequent calls to rate_limit_acquire will block for at least
secs seconds. A shorter secs value will never shorten an existing block.
ยงExample
use stygian_graph::adapters::graphql_rate_limit::{
RateLimitConfig, RequestRateLimit, rate_limit_retry_after,
};
let rl = RequestRateLimit::new(RateLimitConfig::default());
rate_limit_retry_after(&rl, 30).await;