python3中async使用run_in_executor构建异步task及functools传参
python3中async使用run_in_executor构建异步task及functools传参
代码示例:
解决async 运行多线程时报错 RuntimeError: There is no current event loop in thread 'Thread-2'
参考:
https://www.cnblogs.com/cwp-bg/p/9590700.html
https://zhuanlan.zhihu.com/p/137057192
https://www.cnblogs.com/SunshineKimi/p/12053914.html