MCPcopy Index your code
hub / github.com/python/cpython / _close

Method _close

Lib/multiprocessing/connection.py:284–289  ·  view source on GitHub ↗
(self, _CloseHandle=_winapi.CloseHandle)

Source from the content-addressed store, hash-verified

282 _send_ov = None
283
284 def _close(self, _CloseHandle=_winapi.CloseHandle):
285 ov = self._send_ov
286 if ov is not None:
287 # Interrupt WaitForMultipleObjects() in _send_bytes()
288 ov.cancel()
289 _CloseHandle(self._handle)
290
291 def _send_bytes(self, buf):
292 if self._send_ov is not None:

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected