Skip to content

Commit 3d3e12c

Browse files
committed
- Rework a variety of I statements.
1 parent 84aedf7 commit 3d3e12c

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
@@ -322,7 +322,7 @@ a coroutine does, instead it represents the status and result of that computatio
322322
kind of like a status-light (red, yellow or green) or indicator.
323323

324324
``Task`` subclasses ``Future`` in order to gain these various capabilities.
325-
I said in the prior section tasks store a list of callbacks and I lied a bit.
325+
The prior section said tasks store a list of callbacks and it lied to you a bit.
326326
It's actually the ``Future`` class that implements this logic which ``Task``
327327
inherits.
328328

@@ -420,8 +420,8 @@ will monitor how much time has elapsed and accordingly call
420420

421421
We'll use a rather bare object ``YieldToEventLoop()`` to ``yield`` from its
422422
``__await__`` in order to cede control to the event loop.
423-
This is effectively the same as calling ``asyncio.sleep(0)``, but I prefer the
424-
clarity this approach offers, not to mention it's somewhat cheating to use
423+
This is effectively the same as calling ``asyncio.sleep(0)``, but this approach
424+
offers more clarity , not to mention it's somewhat cheating to use
425425
``asyncio.sleep`` when showcasing how to implement it!
426426

427427
The event loop, as usual, cycles through its queue of tasks, giving them control,
@@ -468,8 +468,8 @@ Here is the full program's output:
468468
You might feel this implementation of asynchronous sleep was unnecessarily
469469
convoluted.
470470
And, well, it was.
471-
I wanted to showcase the versatility of futures with a simple example that
472-
could be mimicked for more complex needs.
471+
The example was meant to showcase the versatility of futures with a simple
472+
example that could be mimicked for more complex needs.
473473
For reference, you could implement it without futures, like so::
474474

475475
async def simpler_async_sleep(seconds):

0 commit comments

Comments
 (0)