3 ms·
I like harpo's answer better than the accepted answer. I'll help generate more upvote for that answer from here :) > The coupling is looser with promises becau
by lightblade 13y ago
I like harpo's answer better than the accepted answer. I'll help generate more upvote for that answer from here :)
> The coupling is looser with promises because the operation doesn't have to "know" how it continues, it only has to know when it is ready.
> When you use callbacks, the asynchronous operation actually has a reference to its continuation, which is not its business.
> With promises, you can easily create an expression over an asynchronous operation before you even decide how it's going to resolve.
> So promises help separate the concerns of chaining events versus doing the actual work.