再来回顾一下协程的发展流程:

python2.5 为生成器引用.send()、.throw()、.close()方法

python3.3 为引入yield from,可以接收返回值,可以使用yield from定义协程

Python3.4 加入了asyncio模块

Python3.5 增加async、await关键字,在语法层面的提供支持

python3.7 使用 async def + await 的方式定义协程

python3.10 移除 以 yield from 的方式定义协程