aspl-lang/aspl

os: add a mechanism for signal handling

Ouverte

#6 ouverte le 11 févr. 2025

 (0 commentaire) (0 réaction) (0 personne assignée)C (6 forks)auto 404
enhancementgood first issue

Métriques du dépôt

Stars
 (30 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

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
}

Guide contributeur