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

Method close

Lib/asyncio/windows_events.py:291–301  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

289 return (self._address is None)
290
291 def close(self):
292 if self._accept_pipe_future is not None:
293 self._accept_pipe_future.cancel()
294 self._accept_pipe_future = None
295 # Close all instances which have not been connected to by a client.
296 if self._address is not None:
297 for pipe in self._free_instances:
298 pipe.close()
299 self._pipe = None
300 self._address = None
301 self._free_instances.clear()
302
303 __del__ = close
304

Callers 4

test_double_bindMethod · 0.95
loop_accept_pipeMethod · 0.45
accept_coroMethod · 0.45

Calls 2

cancelMethod · 0.45
clearMethod · 0.45

Tested by 1

test_double_bindMethod · 0.76