There is currently no way to handle system-signals in ASPL without custom implementation calls. I think this feature should be part of the standard library.
Example usage:
import os
os.register_signal_handler(Signal.Interrupt, callback(){
print("SIGINT detected...")
// TODO: Do something here
}
There is currently no way to handle system-signals in ASPL without custom implementation calls. I think this feature should be part of the standard library.
Example usage: