addShutdownHandler

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