(x)
| 1 | from concurrent.futures import ProcessPoolExecutor |
| 2 | |
| 3 | def square(x): |
| 4 | return x * x |
| 5 | |
| 6 | # 创建进程池,并使用 map 方法对 square 应用于列表中的每个元素 |
| 7 | with ProcessPoolExecutor(max_workers=4) as executor: |
nothing calls this directly
no outgoing calls
no test coverage detected