I would like to know which is the best solution when using asynchronous programming. Which one should I use?
Jason Aller
3,66028 gold badges43 silver badges40 bronze badges
asked Dec 9, 2018 at 15:40
Florian Adelin
391 silver badge4 bronze badges
1 Answer 1
Always use async/await for asynchronous tasks.
Yield should only be used for generator functions. Read this article on when and how to use (it's worth the time).
answered Dec 17, 2018 at 14:57
sandrooco
8,88611 gold badges56 silver badges101 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
Explore related questions
See similar questions with these tags.
lang-js
yieldfor asynchronous programming with promises, they are totally outdated.