MCPcopy Index your code
hub / github.com/github/copilot-sdk / _stop_process

Function _stop_process

python/e2e/test_mcp_oauth_e2e.py:56–64  ·  view source on GitHub ↗
(process: asyncio.subprocess.Process)

Source from the content-addressed store, hash-verified

54
55
56async def _stop_process(process: asyncio.subprocess.Process) -> None:
57 if process.returncode is not None:
58 return
59 process.terminate()
60 try:
61 await asyncio.wait_for(process.wait(), timeout=5)
62 except TimeoutError:
63 process.kill()
64 await process.wait()
65
66
67async def _requests(base_url: str) -> list[dict[str, Any]]:

Calls 3

terminateMethod · 0.80
waitMethod · 0.80
killMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…