by dimitropoulos · 2y ago · 0 comments
https://frontside.com/blog/2023-12-11-await-event-horizon/
There are real benefits to using generators over async/await so I would encourage everyone to learn more about them and their benefits.
Just tell them that they already know them.
`yield*` is
- a superset of `await` so if you understand `await`, you understand `yield*`
- infinitely more powerful because it can handle any effect, not just Promise resolution.
- It's just javascript syntax that predates `await`