Stop execution when map function of ThreadPoolExecutor thrown an exception

后端 未结 0 978
长发绾君心
长发绾君心 2020-12-05 03:17
            with ThreadPoolExecutor(max_workers=20) as executor:
                records = list(executor.map(map_function, records))

I have some fun

相关标签:
回答
  • 消灭零回复
提交回复
热议问题