MCPcopy
hub / github.com/Runnin4ik/dpi-detector / _run_phase_with_progress

Function _run_phase_with_progress

cli/runners.py:151–159  ·  view source on GitHub ↗
(tasks: list, description: str)

Source from the content-addressed store, hash-verified

149
150
151async def _run_phase_with_progress(tasks: list, description: str) -> None:
152 total = len(tasks)
153 with Progress(SpinnerColumn(), TextColumn("[progress.description]{task.description}"), transient=True) as progress:
154 task_id = progress.add_task(description, total=total)
155 completed = 0
156 for future in asyncio.as_completed(tasks):
157 await future
158 completed += 1
159 progress.update(task_id, completed=completed, description=f"{description} ({completed}/{total})...")
160
161
162# ── Тест 2: домены ────────────────────────────────────────────────────────────

Callers 1

run_domains_testFunction · 0.85

Calls 1

updateMethod · 0.80

Tested by

no test coverage detected