MCPcopy
hub / github.com/modelcontextprotocol/python-sdk / _close_job_handle

Function _close_job_handle

src/mcp/os/win32/utilities.py:265–269  ·  view source on GitHub ↗

Closes a Job Object handle, tolerating one that is already closed.

(job: object)

Source from the content-addressed store, hash-verified

263
264
265def _close_job_handle(job: object) -> None:
266 """Closes a Job Object handle, tolerating one that is already closed."""
267 if win32api and pywintypes:
268 with suppress(pywintypes.error):
269 win32api.CloseHandle(job)

Callers 4

_create_job_objectFunction · 0.85
close_process_jobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected