SignalHandler¶
Listen for a specific signal. If the wait parameter is true, the program will not terminate until the SignalHandler's dispose method is called, or if the SignalNotify returns false, after handling the signal as this also disposes the SignalHandler and unsubscribes it.
Implements¶
- AsioEventNotify tag
Constructors¶
create¶
Create a signal handler.
new tag create(
notify: SignalNotify iso,
sig: U32 val,
wait: Bool val = false)
: SignalHandler tag^
Parameters¶
- notify: SignalNotify iso
- sig: U32 val
- wait: Bool val = false
Returns¶
- SignalHandler tag^
Public Behaviours¶
raise¶
Raise the signal.
dispose¶
Dispose of the signal handler.