python线程池,多线程

logDebug(self.cfg_down_appdata, f"获取{lastId}的详情")
t_list = []
with ThreadPoolExecutor(10) as executor:
    for info in list_info:
        f = executor.submit(self.all_send_details, info)
        t_list.append(f)
        print('main thread running')

for future in as_completed(t_list):
    print(future.result())
上一篇:CodeCraft-19 and Codeforces Round #537 (Div. 2)


下一篇:并发编程 Promise, Future 和 Callback