Sujet : Re: Using a background thread with asyncio/futures with flask
De : rosuav (at) *nospam* gmail.com (Chris Angelico)
Groupes : comp.lang.pythonDate : 22. Mar 2024, 08:58:20
Autres entêtes
Message-ID : <mailman.6.1711094315.3468.python-list@python.org>
References : 1 2 3
On Fri, 22 Mar 2024 at 18:35, Lars Liedtke via Python-list
<
python-list@python.org> wrote:
>
Hey,
>
As far as I know (might be old news) flask does not support asyncio.
>
You would have to use a different framework, like e.g. FastAPI or similar. Maybe someone has already written "flask with asyncio" but I don't know about that.
>
Did you try searching their documentation?
https://flask.palletsprojects.com/en/3.0.x/async-await/ChrisA