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

Latest commit

 

History

History
31 lines (23 loc) · 1.08 KB

glossary.rst

File metadata and controls

31 lines (23 loc) · 1.08 KB

Glossary

.. glossary::

    coroutine
        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.

    event loop
        The event loop is the central execution device to launch execution of
        coroutines and handle I/O (Network, sub-processes...)

    future
        It's like a mailbox where you can subscribe to receive a result when it
        will be done. More details in `official future documentation
        <https://docs.python.org/3/library/asyncio-task.html#future>`_

    task
        It represents the execution of a coroutine and take care the result in a
        future. More details in `official task documentation
        <https://docs.python.org/3/library/asyncio-task.html#task>`_