You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see that the api endpoints do not have async handlers. Doesn't this mean that these handlers will run synchronously and won't be able to take advantage of the event loop/ async capabilities as NodeJS does?
There might be some gap in my understanding here. If yes, kindly point me to relevant source. Thanks.
The text was updated successfully, but these errors were encountered:
sagrawal-idrc
changed the title
No async endpoints in full-stack-fastapi-postgresql app?
[Question] No async endpoints in full-stack-fastapi-postgresql app?
Aug 30, 2019
When you declare a path operation function with normal def instead of async def, it is run in an external threadpool that is then awaited, instead of being called directly (as it would block the server).
I think this answers my question and I will close the issue.
I see that the api endpoints do not have
async
handlers. Doesn't this mean that these handlers will run synchronously and won't be able to take advantage of the event loop/ async capabilities as NodeJS does?There might be some gap in my understanding here. If yes, kindly point me to relevant source. Thanks.
The text was updated successfully, but these errors were encountered: