“André Staltz - Promises are not neutral enough”
https://staltz.com/promises-are-not-neutral-enough.html
https://staltz.com/promises-are-not-neutral-enough.html
@baldur That's really not a good article...Re-using promises by wrapping them in a function? A promise already calls a function, re-use the function with a new promise, don't re-use the promise.
Also promises _should_ be eager. Promises are designed not for doing work, but for returning values. If you start processing immediately then the value can already be there when you need it.
@Miller_Geek Yeah, I agree.
I thought the bit about how cancellations are hard to fit in with how Promises are designed was interesting. But the post's author is oblivious to how that design is actually more suitable to the async problems facing JS than the task proposals he refers to.