def run_in_thread(runnable, is_daemon=True):
server_thread = Thread(target=runnable)
server_thread.setDaemon(is_daemon)
server_thread.start() return server_thread
05-08 15:10