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

Method finish_socket_func

Lib/asyncio/windows_events.py:461–469  ·  view source on GitHub ↗
(trans, key, ov)

Source from the content-addressed store, hash-verified

459
460 @staticmethod
461 def finish_socket_func(trans, key, ov):
462 try:
463 return ov.getresult()
464 except OSError as exc:
465 if exc.winerror in (_overlapped.ERROR_NETNAME_DELETED,
466 _overlapped.ERROR_OPERATION_ABORTED):
467 raise ConnectionResetError(*exc.args)
468 else:
469 raise
470
471 @classmethod
472 def _finish_recvfrom(cls, trans, key, ov, *, empty_result):

Callers 1

_finish_recvfromMethod · 0.80

Calls 1

getresultMethod · 0.45

Tested by

no test coverage detected