> For the complete documentation index, see [llms.txt](https://hai-shi.gitbook.io/cpython-internals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hai-shi.gitbook.io/cpython-internals/11-parall-concur/11.5-asynchronous-programming.md).

# 11.5 异步编程

Python 提供了许多无需使用线程或多进程即可完成并发编程的方法。这些功能已被添加、扩展，并且经常被更好的替代品所取代。

对于本书的目标版本 3.9，不推荐使用 `@coroutine` 装饰器。

以下系统仍然可用：

* 使用 `async` 关键字创建 futures；
* 使用 `yield from` 关键字运行协程。
