aspl-lang/aspl

os: add a mechanism for signal handling

オープン

#6 opened on 2025/02/11

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)C (6 件のフォーク)auto 404
enhancementgood first issue

Repository metrics

Stars
 (30 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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
}

コントリビューターガイド