Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 14, 2025
1 parent 86d3b0f commit 2d11ea2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/trio/_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,12 +510,12 @@ async def my_async_iterable(arg, *, kwarg=True):
concurrently with that in the body of the ``async for`` loop - the
generator is resumed to compute each element on request.
Even with ``max_buffer_size=0``, a ``@background_with_channel()``
function will 'precompute' each element in a background task, and
function will 'precompute' each element in a background task, and
store it in the channel until requested by the loop.
This is rarely a problem, so we've avoided the performance cost
This is rarely a problem, so we've avoided the performance cost
of exactly replicating the behavior of raw generators. If you
concurent execution would cause problems, we recommend using a
concurrent execution would cause problems, we recommend using a
:class:`trio.Lock` around the critical sections.
"""
# Perhaps a future PEP will adopt `async with for` syntax, like
Expand Down

0 comments on commit 2d11ea2

Please sign in to comment.