12 2020 档案

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

点击右上角即可分享
微信分享提示