()
| 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(): |