Skip to content
Myr

Merge pull request #3985 from greyli/async-note

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Add tips for using async on Windows on Python 3.8

authored by David Lord · committed by GitHub · parents 83b2f8f, ec044a2 · Browse files · 1 file+6 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:docs/async-await.rst+6 added
15 unmodified lines
16 async def get_data():17 data = await async_db_query(...)18 return jsonify(data)1920.. admonition:: Using ``async`` on Windows on Python 3.82122 Python 3.8 has a bug related to asyncio on Windows. If you encounter23 something like ``ValueError: set_wakeup_fd only works in main thread``,24 please upgrade to Python 3.9.252627Performance28-----------2930Async functions require an event loop to run. Flask, as a WSGI
74 unmodified lines