Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Promises? Cancellation? The whole point of a Promise is that it must resolve to something eventually.


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: