Skip to main content

Module timeout

Module timeout 

Source
Expand description

Timeout protection for plugin operations

Implements thread-based timeout enforcement with cooperative cancellation. Uses crossbeam channels for reliable timeout detection and Arc<AtomicBool> for cooperative cancellation within plugins.

Structs§

TimeoutGuard
RAII guard that sets cancellation flag on drop

Functions§

run_with_timeout
Run an operation with timeout protection
run_with_timeout_and_cancel
Run an operation with timeout protection and external cancellation support