Using a background thread with asyncio/futures with flask

Chris Angelico rosuav at gmail.com
Fri Mar 22 03:58:20 EDT 2024


On Fri, 22 Mar 2024 at 18:35, Lars Liedtke via Python-list
<python-list at 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


More information about the Python-list mailing list