aspl-lang/aspl

os: add a mechanism for signal handling

Offen

#6 geöffnet am 11.02.2025

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C (6 Forks)auto 404
enhancementgood first issue

Repository-Metriken

Stars
 (30 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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
}

Contributor Guide