Hacker News new | ask | show | jobs
by Shoothe 3212 days ago
Async/await is the do-notation for Promises and generators can be re-purposed as do-notation for any other monad, see e.g. https://curiosity-driven.org/monads-in-javascript#do