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

Method close

Lib/asyncio/windows_utils.py:105–108  ·  view source on GitHub ↗
(self, *, CloseHandle=_winapi.CloseHandle)

Source from the content-addressed store, hash-verified

103 return self._handle
104
105 def close(self, *, CloseHandle=_winapi.CloseHandle):
106 if self._handle is not None:
107 CloseHandle(self._handle)
108 self._handle = None
109
110 def __del__(self, _warn=warnings.warn):
111 if self._handle is not None:

Callers 3

__del__Method · 0.95
__exit__Method · 0.95
__init__Method · 0.45

Calls 1

CloseHandleFunction · 0.85

Tested by

no test coverage detected