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

Method aclose

Lib/contextlib.py:703–705  ·  view source on GitHub ↗

Immediately unwind the context stack.

(self)

Source from the content-addressed store, hash-verified

701 return callback # Allow use as a decorator
702
703 async def aclose(self):
704 """Immediately unwind the context stack."""
705 await self.__aexit__(None, None, None)
706
707 def _push_async_cm_exit(self, cm, cm_exit):
708 """Helper to correctly register coroutine function to __aexit__

Callers 2

__aexit__Method · 0.45
__aexit__Method · 0.45

Calls 1

__aexit__Method · 0.95

Tested by

no test coverage detected