Using a background thread with asyncio/futures with flask
Lars Liedtke
lal at solute.de
Fri Mar 22 06:16:29 EDT 2024
Sorry, must have missed that :-/
Lars Liedtke
Lead Developer
[Tel.] +49 721 98993-
[Fax] +49 721 98993-
[E-Mail] lal at solute.de<mailto:lal at 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.php
Am 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 at python.org><mailto: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