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

You can also race it with another promise, which e.g. resolves on timeout.


You can but it still won't get cancelled. I found out when I tried to implement a hard time limit to a call.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: