+ 1

Python's async for in real world

I just realized that there is the async for syntax in Python. Why is it that I rarely see it in most code I interact with?. The feature seems really convenient. Do you use the async for syntax oftenly? reference: https://www.pynerds.com/async-for-expressions-in-python/ https://www.pynerds.com/compiler/?code=53ea28ef-492d-4b52-97e4-ba5637fb1729

25th May 2025, 12:08 PM
John Maina
John Maina - avatar
2 ответов
+ 2
async is really useful, but not for everything! at the university we started building something like a digital diary in python with FastAPI backend. it's the fastest api existing at the moment, and the great thing is that it supports async functions. so, it can deliver a content in real time, without refreshing the page...
25th May 2025, 7:19 PM
Mihaly Nyilas
Mihaly Nyilas - avatar
+ 2
Not really useful in my opinion
27th May 2025, 5:35 AM
John Oluwatobi Nwachukwu
John Oluwatobi Nwachukwu - avatar