摘要: asyncio.run_coroutine_threadsafe 和 run_in_executor 是一对反义词。asyncio.run_coroutine_threadsafe 是在非异步的上下文环境(也就是正常的同步语法的函数里面)下调用异步函数对象(协程),因为当前函数定义没有被async修 阅读全文
posted @ 2020-12-31 14:19 北风之神0509 阅读(2691) 评论(0) 推荐(1) 编辑