Skip to content

Commit

Permalink
bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151)
Browse files Browse the repository at this point in the history
Automerge-Triggered-By: GH:asvetlov
  • Loading branch information
zsiciarz committed Nov 25, 2021
1 parent dc19e86 commit 4dd8219
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Doc/library/contextlib.rst
Expand Up @@ -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:
Expand Down

0 comments on commit 4dd8219

Please sign in to comment.