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.
actor tag SignalHandler
Create a signal handler.
new tag create( notify: SignalNotify iso, sig: U32 val, wait: Bool val = false) : SignalHandler tag^
Raise the signal.
be raise()
Dispose of the signal handler.
be dispose()
Called when the signal is received, or when the AsioEventID can be destroyed.
be _event_notify( event: Pointer[AsioEvent val] tag, flags: U32 val, arg: U32 val)
Dispose of the AsioEventID.
fun ref _dispose() : None val
© 2016-2018, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/signals-SignalHandler