Skip to content

Commit 6756257

Browse files
committed
add conclusion
1 parent c31f3c5 commit 6756257

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ own variant of asynchronous sleep -- :func:`asyncio.sleep`.
368368

369369
This snippet puts a few tasks on the event loop's queue and then ``await``\ s a
370370
coroutine wrapped in a task: ``async_sleep(3)``.
371-
We want that task to finish only after 3 seconds have elapsed, but without
371+
We want that task to finish only after three seconds have elapsed, but without
372372
preventing other tasks from running.
373373

374374
::
@@ -431,10 +431,9 @@ Eventually, enough time will have elapsed, and ``_sleep_watcher(...)`` will
431431
mark the future as done, and then itself finish too by breaking out of the
432432
infinite ``while`` loop.
433433
Given this helper task is only invoked once per cycle of the event loop's queue,
434-
you'd be correct to note that this asynchronous sleep will sleep **at least**
434+
you'd be correct to note that this asynchronous sleep will sleep *at least*
435435
three seconds, rather than exactly three seconds.
436-
Note, this is also of true of the library-provided asynchronous function:
437-
``asyncio.sleep``.
436+
Note, this is also of true of: ``asyncio.sleep``.
438437

439438
::
440439

@@ -477,3 +476,5 @@ For reference, you could implement it without futures, like so::
477476
else:
478477
await YieldToEventLoop()
479478

479+
That's all for now. Hopefully you're ready to more confidently dive into some
480+
async programming or check out advanced topics in the :mod:`docs <asyncio>`.

0 commit comments

Comments
 (0)