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

Method _create_async_cb_wrapper

Lib/contextlib.py:642–645  ·  view source on GitHub ↗
(callback, /, *args, **kwds)

Source from the content-addressed store, hash-verified

640
641 @staticmethod
642 def _create_async_cb_wrapper(callback, /, *args, **kwds):
643 async def _exit_wrapper(exc_type, exc, tb):
644 await callback(*args, **kwds)
645 return _exit_wrapper
646
647 async def enter_async_context(self, cm):
648 """Enters the supplied async context manager.

Callers 1

push_async_callbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected