Hacker News new | ask | show | jobs
by cowboyd 845 days ago
> yes but what do I say to my colleagues when they realize they need to learn generators (it's a non-trivial hurdle for many people)

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`