polars::error::signals

Function catch_keyboard_interrupt

pub fn catch_keyboard_interrupt<R, F>(try_fn: F) -> Result<R, KeyboardInterrupt>
where F: FnOnce() -> R + UnwindSafe,
Expand description

Runs the passed function, catching any KeyboardInterrupts if they occur while running the function.