Skip to main content

resolve_timeout_ms

Function resolve_timeout_ms 

Source
pub fn resolve_timeout_ms(env_var: &str, default_ms: u64) -> u64
Expand description

Resolve a timeout in milliseconds from the named env var.

Returns default_ms when the env var is unset, empty, non-numeric, or 0. Pure function — exposed so callers (and contract tests) can verify the resolution policy without constructing a client.