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

Function gate

tasks/capabilities.py:134–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 # CancelledError, so every cancellation crossing an async context manager surfaces as the wrong exception.
133 @asynccontextmanager
134 async def gate() -> AsyncIterator[None]:
135 await _Suspend()
136 yield
137
138 async def body() -> None:
139 async with gate():

Callers 1

bodyFunction · 0.85

Calls 1

_SuspendClass · 0.85

Tested by

no test coverage detected