5 ms·
For other JS developers the stuff about await isn't relevant. It's not the same as a JS async/await In JS an await is just syntactic sugar around a then() on a
by jkells 6y ago
For other JS developers the stuff about await isn't relevant. It's not the same as a JS async/await
In JS an await is just syntactic sugar around a then() on a promise. The Await in the article is a method to block the thread until a promise resolves, there is no equivalent in JS.
.NET has a similar mechanism with Task.Result with similar pitfalls
- vigneshwaran 6y agoYes. The async/await in JS is totally different from Await in plain Scala (without any frameworks)