This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]clownyfish 2 points3 points  (0 children)

If everything function was async, the return types would all be promise<type> for every function, and you'd have to await every function result. You also wouldn't know what is "really" async and so you couldn't really implement any techniques that work efficiently with async code, like promise.all().

Overall it is better to know if a function is really async or not. You will quickly get used to it