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
APA
Posts on LINQ to Fail | Sciencx (2023-12-04T13:51:45+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 2023-12-04T13:51:45+00:00,<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 2023-12-04T13:51:45+00:00]. 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 2023-12-04T13:51:45+00:00. 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: 2023-12-04T13:51:45+00:00]
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/ | 2023-12-04T13:51:45+00:00
https://github.com/addpipe/simple-recorderjs-demo