Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit a7da346

Browse files
committed
Add more glossary links
1 parent bf3d560 commit a7da346

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Notes to writers
1010
================
1111

1212
Tutorials should use Python 3.5 ``async`` and ``await`` keywords rather than
13-
``yield from``.
13+
``@asyncio.coroutine`` and ``yield from``.
1414

1515

1616
Ideas

glossary.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ Glossary
1212
It's a piece of code that can be paused and resumed. Whereas threads are preemptively multitasked by the operating system, coroutines multitask cooperatively: they choose when to pause, and which coroutine to run next.
1313

1414
event loop
15-
The event loop is the central execution device to launch execution of coroutines and handle I/O (Network, sub-processes...)
15+
The event loop is the central execution device to launch execution of coroutines and handle I/O (Network, sub-processes...)
16+
17+
future
18+
It's like a mailbox where you can subscribe to receive a result when it will be done.
19+
20+
task
21+
It represents the execution of a coroutine and take care the result in a future.

hello_clock.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Hello Clock
22
^^^^^^^^^^^
33

4-
Example illustrating how to schedule two coroutines to run concurrently.
5-
They run for ten minutes, during which the first coroutine is scheduled every
4+
Example illustrating how to schedule two :term:`coroutines <coroutine>` to run concurrently.
5+
They run for ten minutes, during which the first :term:`coroutine <coroutine>` is scheduled every
66
second, while the second is scheduled every minute.
77

8-
The function `asyncio.gather` is used to schedule both coroutines at once.
8+
The function `asyncio.gather` is used to schedule both :term:`coroutines <coroutine>` at once.
99

1010
.. literalinclude:: examples/hello_clock.py

hello_world.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This second example show how you can schedule multiple :term:`coroutines <corout
2424
event loop, and then run the :term:`event loop <event loop>`.
2525

2626
Notice that this example will print 'second_hello' before 'first_hello',
27-
as the second task scheduled waits longer that the first one before printing.
27+
as the second :term:`task <task>` scheduled waits longer that the first one before printing.
2828

2929
Also note that this example will never terminate, as the :term:`loop <event loop>` is asked to
3030
`run_forever`.
@@ -35,8 +35,8 @@ Also note that this example will never terminate, as the :term:`loop <event loo
3535
Stopping the loop
3636
-----------------
3737

38-
This third example adds another task that will stop the :term:`event loop <event loop>` before
39-
all scheduled tasks could execute, which results in a warning.
38+
This third example adds another :term:`task <task>` that will stop the :term:`event loop <event loop>` before
39+
all scheduled :term:`tasks <task>` could execute, which results in a warning.
4040

4141
.. literalinclude:: examples/loop_stop.py
4242

0 commit comments

Comments
 (0)