addShutdownHandler

Register a handler to be called when a shutdown is requested. Warning: the delegate may be called in an arbitrary thread.

  1. void addShutdownHandler(void delegate(scope const(char)[] reason) fn)
    void
    addShutdownHandler
    (
    void delegate
    (
    scope const(char)[] reason
    )
    fn
    )
  2. void addShutdownHandler(void delegate() fn)

Meta