this post was submitted on 24 Aug 2024
600 points (99.3% liked)
Programmer Humor
32581 readers
1065 users here now
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I like async but dislike await. I spend entirely too much time on everything I build trying to maximize how much I can do in parallel because I find it tremendously satisfying.
You probably already know this, or are talking about another language, but JavaScript is inherently single threaded, so unless you're running blocking I/O in parallel, you won't actually see any performance boost. Service workers get their own thread though.
Then Promise.all is for you!
TaskGroup in Python is great