92 ] |
92 ] |
93 |
93 |
94 ProcessPoolExecutor = None |
94 ProcessPoolExecutor = None |
95 if workers != 1: |
95 if workers != 1: |
96 try: |
96 try: |
97 from concurrent.futures import ProcessPoolExecutor # __IGNORE_WARNING__ |
97 from concurrent.futures import ProcessPoolExecutor # noqa: I101, I103 |
98 except NotImplementedError: |
98 except NotImplementedError: |
99 workers = 1 |
99 workers = 1 |
100 |
100 |
101 if workers != 1 and ProcessPoolExecutor is not None: |
101 if workers != 1 and ProcessPoolExecutor is not None: |
102 # If workers == 0, let ProcessPoolExecutor determine worker count. |
102 # If workers == 0, let ProcessPoolExecutor determine worker count. |