MCPcopy Create free account
hub / github.com/tox-dev/filelock / gate

Function gate

tasks/capabilities.py:147–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 # CancelledError, so every cancellation crossing an async context manager surfaces as the wrong exception.
146 @asynccontextmanager
147 async def gate() -> AsyncGenerator[None]:
148 await _Suspend()
149 yield
150
151 async def body() -> None:
152 async with gate():

Callers 1

bodyFunction · 0.85

Calls 1

_SuspendClass · 0.85

Tested by

no test coverage detected