Skip to content

Commit 08d4eec

Browse files
Apply suggestions from code review
Co-authored-by: Peter Bierma <[email protected]>
1 parent 52a90c0 commit 08d4eec

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/howto/a-conceptual-overview-of-asyncio.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ being awaited.
215215

216216
Awaiting a task will cede control from the current task or coroutine to
217217
the event loop.
218-
In the process of relinquishing control a few important things happen.
218+
In the process of relinquishing control, a few important things happen.
219219
We'll use the following code example to illustrate::
220220

221221
async def plant_a_tree():
@@ -227,7 +227,7 @@ We'll use the following code example to illustrate::
227227

228228
In this example, imagine the event loop has passed control to the start of the
229229
coroutine ``plant_a_tree()``.
230-
As seen above, that coroutine creates a task, then awaits it.
230+
As seen above, the coroutine creates a task and then awaits it.
231231
The ``await dig_the_hole_task`` instruction adds a callback, which will resume
232232
``plant_a_tree()``, to the ``dig_the_hole_task`` object's list of callbacks.
233233
And then, the instruction cedes control to the event loop.
@@ -301,7 +301,7 @@ unintentionally hog control from other tasks and effectively stall the event
301301
loop.
302302
:func:`asyncio.run` can help you detect such occurences with the ``debug=True``
303303
flag.
304-
Among other things, that will log any coroutines which monopolize execution for
304+
Among other things, it will log any coroutines that monopolize execution for
305305
100ms or longer.
306306

307307
The design intentionally trades off some conceptual clarity around usage of
@@ -433,7 +433,7 @@ like a status light (red, yellow or green) or indicator.
433433
these various capabilities.
434434
The prior section said tasks store a list of callbacks, which wasn't entirely
435435
accurate.
436-
It's actually the ``Future`` class that implements this logic which ``Task``
436+
It's actually the ``Future`` class that implements this logic, which ``Task``
437437
inherits.
438438

439439
Futures may also be used directly (not via tasks).
@@ -487,7 +487,7 @@ If :meth:`future.set_result() <asyncio.Future.set_result>` (the method
487487
responsible for marking that future as done) is never called, then this task
488488
will never finish.
489489
We've also enlisted the help of another task, which we'll see in a moment, that
490-
will monitor how much time has elapsed and accordingly call
490+
will monitor how much time has elapsed and, accordingly, call
491491
``future.set_result()``.
492492

493493
::

0 commit comments

Comments
 (0)