Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
afarah1
26 days ago
|
parent
|
context
|
favorite
| on:
You can't cancel a JavaScript promise (except some...
You can also race it with another promise, which e.g. resolves on timeout.
Keyframe
26 days ago
[–]
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: