ReactorSignal.registerHandler

register a signal handler

Register a handler for a specific signal. The signal must not already be handled, either through ReactorSignal or otherwise.

  1. void registerHandler(OSSignal signum, SignalHandler handler)
    struct ReactorSignal
    @trusted @nogc
    void
    registerHandler
  2. void registerHandler(T handler)

Parameters

signum OSSignal

the signal to be handled

handler SignalHandler

a delegate to be called when the signal arrives

Meta