SwashBuckler001's picture
IdiomBench (part 6)
60f5111 verified
Raw History Blame Contribute Delete
148 Bytes
@async_context_manager
async def ctx():
await open()
try:
yield
finally:
await close()
async with ctx():
await ...