Answer the question
In order to leave comments, you need to log in
Which is better to use async.js or promise?
Good day!
What is the best way to organize asynchronous code in Node.js? The old-fashioned way through callback noodles wrapped in async.js or through yield and promise?
Which option is more reliable and convenient? (because I just recently started working with promise, I felt something wet in my ear. I felt it, and it turns out that the brain is leaking).
PS Also, where can we use yield besides asynchronous code?
Answer the question
In order to leave comments, you need to log in
The fastest and most reliable is callback hell, go back to basics.
Pure promises are the same noodles, only in profile. Well, only the investment is reduced. Generators and yield look better.
Where generators are needed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question