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

Method wrapper

Lib/test/test_asyncio/test_ssl.py:1265–1271  ·  view source on GitHub ↗
(sock)

Source from the content-addressed store, hash-verified

1263
1264 def run(meth):
1265 def wrapper(sock):
1266 try:
1267 meth(sock)
1268 except Exception as ex:
1269 self.loop.call_soon_threadsafe(future.set_exception, ex)
1270 else:
1271 self.loop.call_soon_threadsafe(future.set_result, None)
1272 return wrapper
1273
1274 async def client(addr):

Callers

nothing calls this directly

Calls 2

methFunction · 0.85
call_soon_threadsafeMethod · 0.45

Tested by

no test coverage detected