JS Async - atabegruslan/Notes GitHub Wiki
- nesting prob
- nesting prob
- Syntactic sugar over Promises
- Need corouting libs.
- Generator by itself is like
Goto
- Syntactic sugar over Promises
- Not yet native
- Majority of ES7 features including async/await have not been natively implemented (11 July 2016).
- Native in current Chrome, Node.js but still needs to be transpiled with Babel for most projects (8 Mar 2018).
Bad way:
- https://www.youtube.com/playlist?list=PL55RiY5tL51pHpagYcrN9ubNLVXF8rGVi
- https://itnext.io/javascript-promises-vs-rxjs-observables-de5309583ca2
- https://levelup.gitconnected.com/promise-vs-observable-vs-stream-165a310e886f
-
vue-async-function
: https://xebia.com/blog/next-generation-async-functions-with-vue-async-function/ -
transform-regenerator
&polyfill
: https://stackoverflow.com/questions/46389267/using-async-await-with-webpack-simple-configuration-throwing-error-regeneratorr/46734082 - Bluebird: https://github.com/atabegruslan/Travel-Blog-Laravel-5-8/commit/9d710ec1b307a5922bf35304e260ff758f5e79ea
- https://hackernoon.com/async-await-generators-promises-51f1a6ceede2 Good - first half
- https://blog.benestudio.co/async-await-vs-coroutines-vs-promises-eaedee4e0829 Good
- https://www.freecodecamp.org/news/write-modern-asynchronous-javascript-using-promises-generators-and-coroutines-5fa9fe62cf74/ Recap