Re:Simple React Patterns
by rounce on Friday November 10, 2017 @08:06AM
(#15669576)
Promises? Cancellation? The whole point of a Promise is that it must resolve to something eventually.
[ Parent
| on HN ]
Re:Simple React Patterns
by ryanbrunner on Friday November 10, 2017 @09:49AM
(#15670174)
You're cancelling the promise from the perspective of the caller, not the Promise itself. Promises themselves can't decide that they don't want to resolve, but there's plenty of cases where whoever requested the promise in the first place is no longer interested in the results.