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

Btw this same issue exhibits in python with threads. If you spawn an async computation in a thread and an uncaught error is raised, the thread disappears silently, leaving you with a callback that’s never called or a future that’s never resolved.


Ah interesting to know it's not only JavaScript.

But I assume in a thread-based language like Java all asynchronicity happens due to threads. Then from the programmers' point of view method-calls always either return a result or throw an error. They don't just silently stop executing




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

Search: