def callback(): from controller import MSGHandler from src import db yield MSGHandler.stop() yield db.stop() ioloop.stop()
def bcast(message): from controller import MSGHandler MSGHandler.broadcast(message)