Is `await` in Python3 Cooperative Multitasking?

前端 未结 3 776
春和景丽
春和景丽 2021-01-18 06:08

I am trying to understand the new asyncio coroutines (introduced in Python 3.5).

In 1997 I attended a course at university which roughly covered the content of the

3条回答
  •  灰色年华
    2021-01-18 06:37

    Yes. According to Wikipedia:

    Coroutines are computer program components that generalize subroutines for nonpreemptive multitasking, by allowing multiple entry points for suspending and resuming execution at certain locations.

提交回复
热议问题