MCPcopy Index your code
hub / github.com/RustPython/RustPython / _close

Method _close

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

Source from the content-addressed store, hash-verified

275 _send_ov = None
276
277 def _close(self, _CloseHandle=_winapi.CloseHandle):
278 ov = self._send_ov
279 if ov is not None:
280 # Interrupt WaitForMultipleObjects() in _send_bytes()
281 ov.cancel()
282 _CloseHandle(self._handle)
283
284 def _send_bytes(self, buf):
285 if self._send_ov is not None:

Callers

nothing calls this directly

Calls 1

cancelMethod · 0.45

Tested by

no test coverage detected