Skip to main content

effective_cap

Function effective_cap 

Source
pub fn effective_cap(requested: Option<NonZeroUsize>, config: usize) -> usize
Expand description

Combines per-call and configuration concurrency caps.

An absent per-call cap and a zero configuration cap each mean unbounded. When both sides are bounded, the lower cap wins.