Re:Syncify.js – Eliminates the need for callbacks in the bro...
by onestone on Sunday May 10, 2015 @01:40PM
(#9520642)
What you describe is the "old" way to use promises.
Instead, you can yield promises inside generator functions, or better yet use async/await with a transpiler. Both methods give you nice sync-looking code.
Instead, you can yield promises inside generator functions, or better yet use async/await with a transpiler. Both methods give you nice sync-looking code.