@@ -322,7 +322,7 @@ a coroutine does, instead it represents the status and result of that computatio
322322kind 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.
326326It's actually the ``Future `` class that implements this logic which ``Task ``
327327inherits.
328328
@@ -420,8 +420,8 @@ will monitor how much time has elapsed and accordingly call
420420
421421We'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
427427The 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
469469convoluted.
470470And, 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.
473473For reference, you could implement it without futures, like so::
474474
475475 async def simpler_async_sleep(seconds):
0 commit comments