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

Method accept_coro

Lib/asyncio/windows_events.py:564–570  ·  view source on GitHub ↗
(future, conn)

Source from the content-addressed store, hash-verified

562 return conn, conn.getpeername()
563
564 async def accept_coro(future, conn):
565 # Coroutine closing the accept socket if the future is cancelled
566 try:
567 await future
568 except exceptions.CancelledError:
569 conn.close()
570 raise
571
572 future = self._register(ov, listener, finish_accept)
573 coro = accept_coro(future, conn)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected