Skip to main content

MAX_PENDING_UNITS

Constant MAX_PENDING_UNITS 

Source
pub(crate) const MAX_PENDING_UNITS: usize = 8192;
Expand description

Hard cap on queued units, independent of the byte budget.

A Pending is on the order of 64 bytes, so this is roughly the same order of bookkeeping as the default 1 MiB byte budget, and it is far more objects than any realistic hold window. It exists because Item::Elided units carry zero bytes: without it, eliding every object behind a never-released Hold grows the deque without bound while queued_bytes() stays at zero.