[3.10] bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) (GH-29779)

Automerge-Triggered-By: GH:asvetlov
(cherry picked from commit 4dd82194f4)

Co-authored-by: Zbigniew Siciarz <zbigniew@siciarz.net>

Co-authored-by: Zbigniew Siciarz <zbigniew@siciarz.net>
This commit is contained in:
Andrew Svetlov 2021-11-25 19:20:17 +02:00 committed by GitHub
parent ce5a6460ae
commit 52d10f6485
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -130,7 +130,9 @@ Functions and classes provided:
either as decorators or with :keyword:`async with` statements::
import time
from contextlib import asynccontextmanager
@asynccontextmanager
async def timeit():
now = time.monotonic()
try: