You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: glossary.rst
+13-4Lines changed: 13 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,22 @@ Glossary
9
9
.. glossary::
10
10
11
11
coroutine
12
-
A coroutine is a piece of code that can be paused and resumed. In contrast to threads which are preemptively multitasked by the operating system, coroutines multitask cooperatively. I.e. they choose when to pause (or to use terminology for coroutines before 3.4 - ``yield``) execution. They can also execute other coroutines.
12
+
A coroutine is a piece of code that can be paused and resumed. In
13
+
contrast to threads which are preemptively multitasked by the operating
14
+
system, coroutines multitask cooperatively. I.e. they choose when to
15
+
pause (or to use terminology for coroutines before 3.4 - ``yield``)
16
+
execution. They can also execute other coroutines.
13
17
14
18
event loop
15
-
The event loop is the central execution device to launch execution of coroutines and handle I/O (Network, sub-processes...)
19
+
The event loop is the central execution device to launch execution of
20
+
coroutines and handle I/O (Network, sub-processes...)
16
21
17
22
future
18
-
It's like a mailbox where you can subscribe to receive a result when it will be done. More details in `official documentation <https://docs.python.org/3/library/asyncio-task.html#future>`_
23
+
It's like a mailbox where you can subscribe to receive a result when it
24
+
will be done. More details in `official documentation
It represents the execution of a coroutine and take care the result in a future. More details in `official documentation <https://docs.python.org/3/library/asyncio-task.html#task>`_
28
+
It represents the execution of a coroutine and take care the result in a
0 commit comments