def run_in_thread(runnable, is_daemon=True): server_thread = Thread(target=runnable) server_thread.setDaemon(is_daemon) server_thread.start() return server_thread
posted on 2019-04-24 09:55 阅读( ...) 评论( ...)
本文共 277 字,大约阅读时间需要 1 分钟。
def run_in_thread(runnable, is_daemon=True): server_thread = Thread(target=runnable) server_thread.setDaemon(is_daemon) server_thread.start() return server_thread
转载于:https://www.cnblogs.com/wenlin-gk/p/10760668.html