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

Method __aenter__

Lib/asyncio/locks.py:13–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12class _ContextManagerMixin:
13 async def __aenter__(self):
14 await self.acquire()
15 # We have no use for the "as ..." clause in the with
16 # statement for locks.
17 return None
18
19 async def __aexit__(self, exc_type, exc, tb):
20 self.release()

Callers

nothing calls this directly

Calls 1

acquireMethod · 0.45

Tested by

no test coverage detected