Python concurrent.futures模块,常用函数和类

下面列出了Python concurrent.futures 模块中定义的常用函数和类,我们从496个开源Python项目中,按照使用频率进行了排序。

函数和类 使用项目数
1. ThreadPoolExecutor() 用在(407)个项目中
2. ProcessPoolExecutor() 用在(103)个项目中
3. as_completed() 用在(77)个项目中
4. Future() 用在(52)个项目中
5. wait() 用在(45)个项目中
6. CancelledError() 用在(36)个项目中
7. FIRST_COMPLETED 用在(30)个项目中
8. TimeoutError() 用在(29)个项目中
9. append() 用在(16)个项目中
10. ALL_COMPLETED 用在(10)个项目中
11. Executor() 用在(10)个项目中
12. FIRST_EXCEPTION 用在(8)个项目中