Cleaning up promises with yield

Last time we cleaned up callback hell with yield but callbacks in the design which I was talking about are not all that common these days, especially if you’re working in the browser. When you’re in the browser there’s a good chance y…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

Last time we cleaned up callback hell with yield but callbacks in the design which I was talking about are not all that common these days, especially if you’re working in the browser. When you’re in the browser there’s a good chance you’re going to be working with Promises, and more accurately Promise/A+. If you’re unfamiliar with Promises, it’s a specification which is states that you have an object which exposes a then method which will either fulfill or reject some operation.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate Updates
APA

Posts on LINQ to Fail | Sciencx (2014-01-28T00:00:00+00:00) Cleaning up promises with yield. Retrieved from https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/

MLA
" » Cleaning up promises with yield." Posts on LINQ to Fail | Sciencx - Tuesday January 28, 2014, https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/
HARVARD
Posts on LINQ to Fail | Sciencx Tuesday January 28, 2014 » Cleaning up promises with yield., viewed ,<https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Cleaning up promises with yield. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/
CHICAGO
" » Cleaning up promises with yield." Posts on LINQ to Fail | Sciencx - Accessed . https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/
IEEE
" » Cleaning up promises with yield." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/. [Accessed: ]
rf:citation
» Cleaning up promises with yield | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2014/01/28/cleaning-up-promises-with-yield/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.