Develop with asyncio
Develop with asyncio
Asynchronous programming is different than classical “sequential” programming. This page lists common traps and explains how to avoid them.
1. Debug mode of asyncio
The implementation of asyncio
has been written for performance. In order to ease the development of asynchronous code, you may wish to enable debug mode.
To enable all debug checks for an application:
- Enable the asyncio debug mode globally by setting the environment variable
PYTHONASYNCIODEBUG
登录查看完整内容