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()
© 2016-2020, The Pony Developers
© 2014-2015, Causality Ltd.
Licensed under the BSD 2-Clause License.
https://stdlib.ponylang.io/signals-SignalHandler