Skip to main content

start_guard

Function start_guard 

Source
pub fn start_guard(eviction_callback: Arc<dyn Fn(PressureLevel) + Send + Sync>)
Expand description

Start the background memory guardian task (idempotent). Polls every 3s (normal) or 1s (under pressure). At Critical level, performs emergency shutdown to prevent OS OOM kill.