Sujet : Re: Using a background thread with asyncio/futures with flask
De : lal (at) *nospam* solute.de (Lars Liedtke)
Groupes : comp.lang.pythonDate : 22. Mar 2024, 11:16:29
Autres entêtes
Organisation : solute GmbH
Message-ID : <mailman.9.1711103012.3468.python-list@python.org>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
Sorry, must have missed that :-/
Lars Liedtke
Lead Developer
[Tel.] +49 721 98993-
[Fax] +49 721 98993-
[E-Mail]
lal@solute.de<mailto:
lal@solute.de>
solute GmbH
Zeppelinstraße 15
76185 Karlsruhe
Germany
[Marken]
Geschäftsführer | Managing Director: Dr. Thilo Gans, Bernd Vermaaten
Webseite |
www.solute.de <
http://www.solute.de/>
Sitz | Registered Office: Karlsruhe
Registergericht | Register Court: Amtsgericht Mannheim
Registernummer | Register No.: HRB 748044
USt-ID | VAT ID: DE234663798
Informationen zum Datenschutz | Information about privacy policy
https://www.solute.de/ger/datenschutz/grundsaetze-der-datenverarbeitung.phpAm 22.03.24 um 08:58 schrieb Chris Angelico via Python-list:
On Fri, 22 Mar 2024 at 18:35, Lars Liedtke via Python-list
<
python-list@python.org><mailto:
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