forked from orbit-oss/flask
Add tips for using async on Windows on Python 3.8
This commit is contained in:
parent
83b2f8f0f1
commit
ec044a24e1
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
-----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue