SwashBuckler001's picture
IdiomBench (part 8)
218d72e 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 ...