Construct the parallel-parse executor selected by [_select_executor_kind].
(max_workers: int)
| 50 | |
| 51 | |
| 52 | def _make_executor(max_workers: int): |
| 53 | """Construct the parallel-parse executor selected by [_select_executor_kind].""" |
| 54 | if _select_executor_kind() == "thread": |
| 55 | return concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) |
| 56 | return concurrent.futures.ProcessPoolExecutor(max_workers=max_workers) |
| 57 | |
| 58 | logger = logging.getLogger(__name__) |
| 59 |
no test coverage detected