Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
AbortController (ryanflorence.dev)
2 points by pspeter3 on June 21, 2021 | hide | past | favorite | 1 comment


Maybe A+ promises are the wrong abstraction

https://github.com/mitranim/posterus

In the case of the article, we're not going to do anything more with the Promise references returned by those fetch calls, but it seems Promises are designed to accommodate an additional use case where that might be useful but which comes at a cost, like handling cancelation out of the box on a general level.




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

Search: