678
STOP DOING ASYNC
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
You aren't slowing down anything. If you didn't use async that thread would be blocked.
You'd need a thread per request even though they are sat doing nothing while waiting for responses.
Instead when you hit an await that thread is freed for other work and when the wait is over the rest of the code is scheduled to run.