What is a JavaScript Promise?
Consider the following scenario:
Your plan was to drink some tea while you read a book. However, when you were about to start, you noticed that there was no sugar in the tea. Instead of completely aborting your plan, you send for some sugar, keep asi...
ubahthebuilder.hashnode.dev5 min read
Koga Ryu
Promises and generators, you honestly lost me. Promises - where does this fit in in the whole? Generators - Yes I get that the generator iterates similar to a linked list in C++, but where does this fit in to Async matters?
I suspect what I wanted is a grander example showing how these work together in a coffeeshop or a post office to achieve whatever end they are ment to.
I think the reason I fail to user is how the moving parts fit together once in motion.