Skip to main content

RUNTIME_WARNING_CAP

Constant RUNTIME_WARNING_CAP 

Source
pub const RUNTIME_WARNING_CAP: usize = 64;
Expand description

How many RuntimeWarnings one flow accumulates between drains before it stops recording them.

A cap rather than unbounded growth, per this project’s standing rule that any accumulating loop needs a limit: an unset temp read inside a while loop is exactly the shape that would otherwise grow forever. Dropping the overflow is right for a warning — the first ones already say everything the author needs.