jinks_core.interrupt¶
Class to delay keyboard interrupt.
Classes
Context manager that defers SIGINT until the protected block exits. |
- class jinks_core.interrupt.DelayedKeyboardInterrupt¶
Bases:
objectContext manager that defers SIGINT until the protected block exits.
with DelayedKeyboardInterrupt(): # SIGINT is deferred here ... # KeyboardInterrupt is raised here if SIGINT was received
- signal_received: tuple[int, FrameType | None] | None = None¶
- old_handler: Callable | None = None¶
- __init__()¶