polars_
core
0.46.0
Module signals
Module Items
Structs
Functions
In polars_
core::
error
polars_core
::
error
Module
signals
Copy item path
Structs
§
Keyboard
Interrupt
Python hooks SIGINT to instead generate a KeyboardInterrupt exception. So we do the same to try and abort long-running computations and return to Python so that the Python exception can be generated.
Functions
§
catch_
keyboard_
interrupt
Runs the passed function, catching any KeyboardInterrupts if they occur while running the function.
register_
polars_
keyboard_
interrupt_
hook
try_
raise_
keyboard_
interrupt
Checks if the keyboard interrupt flag is set, and if yes panics as a keyboard interrupt. This function is very cheap.