Merge pull request #3985 from greyli/async-note

Add tips for using async on Windows on Python 3.8
This commit is contained in:
David Lord 2021-04-29 10:11:09 -07:00 committed by GitHub
commit 0c198dffc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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
-----------