Skip to main content

Module Timeout

Module Timeout 

Source
Expand description

Timeout management with cascading deadlines.

TimeoutManager tracks a per-operation timeout and an optional global deadline. effective_timeout() returns the minimum of the two so every nested operation respects both the local and cascade budgets.

All public methods have panic-safe variants (Remaining, EffectiveTimeout, IsExceeded) that catch panics via catch_unwind and return conservative fallback values so a transient panic never propagates into the caller.

Structsยง

TimeoutManager
Timeout manager with optional cascading global deadline.