class Servolux::Server
def wait_for_shutdown
blocked until the server has been safely stopped.
method has been called and has completed. The current thread will be
If the server has been started, this method waits till the +shutdown+
def wait_for_shutdown @mutex.synchronize { @shutdown.wait(@mutex) unless @shutdown.nil? } self end