def end():
 if core.is_standalone():
  standalone.end()
  logger.info('Stop Glances (with CTRL-C)')
 elif core.is_client():
  client.end()
  logger.info('Stop Glances client (with CTRL-C)')
 elif core.is_server():
  server.end()
  logger.info('Stop Glances server (with CTRL-C)')
 elif core.is_webserver():
  webserver.end()
  logger.info('Stop Glances web server(with CTRL-C)')
 sys.exit(0)

def end ( ) : if core . is_standalone ( ) : standalone . end ( ) logger . info ( 'Stop Glances (with CTRL-C)' ) elif core . is_client ( ) : client . end ( ) logger . info ( 'Stop Glances client (with CTRL-C)' ) elif core . is_server ( ) : server . end ( ) logger . info ( 'Stop Glances server (with CTRL-C)' ) elif core . is_webserver ( ) : webserver . end ( ) logger . info ( 'Stop Glances web server(with CTRL-C)' ) sys . exit ( 0 )
event: ends the coroutine and returns a value to its delegator .