ThreadPoolExecutor/ProcessPoolExecutor不抛出异常的问题
摘要:
from concurrent.futures import ThreadPoolExecutor, ProcessPoolExecutor """ 在使用线程池/进程池之后,如果任务函数中出现异常,如果不调用result异常并不会抛出,导致一种没有报错的假象 """ def func(): lst 阅读全文
posted @ 2020-09-01 09:32 信奉上帝的小和尚 阅读(1804) 评论(0) 推荐(0)
浙公网安备 33010602011771号