common.runtime.signals
signal_received
def signal_received() -> bool
check if a signal was received
sleep
def sleep(sleep_seconds: float) -> None
A signal-aware version of sleep function. Will raise SignalReceivedException if signal was received during sleep period.
delayed_signals
@contextmanager
def delayed_signals() -> Iterator[None]
Will delay signalling until raise_if_signalled
is used or signalled sleep