MCPcopy Index your code
hub / github.com/RustPython/RustPython / wrapper

Method wrapper

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

Source from the content-addressed store, hash-verified

1273
1274 def run(meth):
1275 def wrapper(sock):
1276 try:
1277 meth(sock)
1278 except Exception as ex:
1279 self.loop.call_soon_threadsafe(future.set_exception, ex)
1280 else:
1281 self.loop.call_soon_threadsafe(future.set_result, None)
1282 return wrapper
1283
1284 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