()
Wait for console exit and stop all model servers.
Wait for console exit and stop all model servers.
Wait for console exit and stop all model servers .
def wait():
    '''Wait for console exit and stop all model servers.'''
    try:
        while len(_update_thread_list()) > 0:
            time.sleep(1000)
    except (KeyboardInterrupt, SystemExit):
        sys.stdout.write('\n')
        sys.stdout.flush()
        stop()
def wait ( ) : try : while len ( _update_thread_list ( ) ) > 0 : time . sleep ( 1000 ) except ( KeyboardInterrupt , SystemExit ) : sys . stdout . write ( '\n' ) sys . stdout . flush ( ) stop ( )