Skip to main content

defer_by

Function defer_by 

Source
pub(crate) fn defer_by(
    arrived_at: Instant,
    by: Duration,
    config: &EgressConfig,
) -> Deferral
Expand description

Resolve Delay { by } against EgressConfig::max_hold.

A deadline, not a spacing: arrived_at + by. Two units arriving together with the same by are released together, not staggered.