DEV Community

Kevin Le
Kevin Le

Posted on

 

States and Fates in JS Promises

https://github.com/domenic/promises-unwrapping/blob/master/docs/states-and-fates.md

Written by the author who I believe is an expert on the subject of JS Promises, I have no doubt this is totally correct. But, with respect to the recursive nature of states and fates, if you can complement the explanation with diagrams, circles, squares, arrows, etc or explain in a different way, will you do so here.

Top comments (2)

Collapse
 
justsml profile image
Daniel Levy

I agree, visual promise resources are sorely lacking currently.

I've been working on adding visual & animated resources to explain Promises, check danlevy.net/visualizing-promises/

Let me know if you like this direction!

Collapse
 
codeprototype profile image
Kevin Le

That's excellent

How did this page load so fast?

Caching at DEV

  • DEV uses caching to speed up page loads and reduce server load
  • Redis caching system is used for frequently accessed data
  • Expiration policies are applied depending on data type
  • Caching system is monitored and optimized for performance
  • Caching has helped improve user experience and scale the platform