MCPcopy
hub / github.com/HKUDS/DeepCode / _process_with_semaphore

Method _process_with_semaphore

tools/code_indexer.py:1079–1088  ·  view source on GitHub ↗
(file_path: Path, index: int, total: int)

Source from the content-addressed store, hash-verified

1077 tasks = []
1078
1079 async def _process_with_semaphore(file_path: Path, index: int, total: int):
1080 async with semaphore:
1081 # Add a small delay to space out concurrent requests
1082 if index > 1:
1083 await asyncio.sleep(
1084 self.request_delay * 0.5
1085 ) # Reduced delay for concurrent processing
1086 return await self._analyze_single_file_with_relationships(
1087 file_path, index, total
1088 )
1089
1090 try:
1091 # Create tasks for all files

Callers

nothing calls this directly

Tested by

no test coverage detected