Add tips for using async on Windows on Python 3.8

This commit is contained in:
Grey Li 2021-04-29 07:40:11 +08:00
parent 83b2f8f0f1
commit ec044a24e1

View file

@ -17,6 +17,12 @@ defined with ``async def`` and use ``await``.
data = await async_db_query(...)
return jsonify(data)
.. admonition:: Using ``async`` on Windows on Python 3.8
Python 3.8 has a bug related to asyncio on Windows. If you encounter
something like ``ValueError: set_wakeup_fd only works in main thread``,
please upgrade to Python 3.9.
Performance
-----------