@@ -215,7 +215,7 @@ being awaited.
215215
216216Awaiting a task will cede control from the current task or coroutine to
217217the 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.
219219We'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
228228In this example, imagine the event loop has passed control to the start of the
229229coroutine ``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.
231231The ``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.
233233And then, the instruction cedes control to the event loop.
@@ -301,7 +301,7 @@ unintentionally hog control from other tasks and effectively stall the event
301301loop.
302302:func: `asyncio.run ` can help you detect such occurences with the ``debug=True ``
303303flag.
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
305305100ms or longer.
306306
307307The design intentionally trades off some conceptual clarity around usage of
@@ -433,7 +433,7 @@ like a status light (red, yellow or green) or indicator.
433433these various capabilities.
434434The prior section said tasks store a list of callbacks, which wasn't entirely
435435accurate.
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 ``
437437inherits.
438438
439439Futures may also be used directly (not via tasks).
@@ -487,7 +487,7 @@ If :meth:`future.set_result() <asyncio.Future.set_result>` (the method
487487responsible for marking that future as done) is never called, then this task
488488will never finish.
489489We'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