Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
BenoitEssiambre
on April 27, 2020
|
parent
|
context
|
favorite
| on:
Eloquent JavaScript 3rd Edition (2018)
This is how async/await is implemented. I think 'await' is almost just a synonym for yield. I didn't invent that part. I just made a faster, better encapsulated, promise free version.
Kwantuum
on April 27, 2020
[–]
I'm failing to see how async/await has more promises than your implementation.
BenoitEssiambre
on April 27, 2020
|
parent
[–]
Async/await requires passing a promise to await. If you read the documentation for async/await, it starts with: "These features basically act as syntactic sugar on top of promises":
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/As...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: