aspl-lang/aspl

os: add a mechanism for signal handling

開放

#6 建立於 2025年2月11日

 (0 則留言) (0 個反應) (0 位負責人)C (6 個分叉)auto 404
enhancementgood first issue

倉庫指標

星標
 (30 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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
}

貢獻者指南