MCPcopy Index your code
hub / github.com/tirth8205/code-review-graph / _make_executor

Function _make_executor

code_review_graph/incremental.py:52–56  ·  view source on GitHub ↗

Construct the parallel-parse executor selected by [_select_executor_kind].

(max_workers: int)

Source from the content-addressed store, hash-verified

50
51
52def _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
58logger = logging.getLogger(__name__)
59

Callers 2

full_buildFunction · 0.85
incremental_updateFunction · 0.85

Calls 1

_select_executor_kindFunction · 0.85

Tested by

no test coverage detected