Module signals
Structs§
- 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§
- Runs the passed function, catching any KeyboardInterrupts if they occur while running the function.
- Checks if the keyboard interrupt flag is set, and if yes panics as a keyboard interrupt. This function is very cheap.