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

Method _get_unconnected_pipe

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

Source from the content-addressed store, hash-verified

260 self._pipe = self._server_pipe_handle(True)
261
262 def _get_unconnected_pipe(self):
263 # Create new instance and return previous one. This ensures
264 # that (until the server is closed) there is always at least
265 # one pipe handle for address. Therefore if a client attempt
266 # to connect it will not fail with FileNotFoundError.
267 tmp, self._pipe = self._pipe, self._server_pipe_handle(False)
268 return tmp
269
270 def _server_pipe_handle(self, first):
271 # Return a wrapper for a new pipe handle.

Callers 1

loop_accept_pipeMethod · 0.80

Calls 1

_server_pipe_handleMethod · 0.95

Tested by

no test coverage detected