-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
std/async: Uncaught exception in pooledMap #9070
Comments
I'll investigate – from discussion I had offline with @lucacasonato we'll probably need to rewrite the implementation of |
I looked at it shortly and noticed something which I found interesting. If we add even a little bit of delay to your The code for simulating both types be found in here: |
We probably need to land #9103 before attempting to fix this as there are changed behaviours in streams which align to spec. |
Good point, thanks for the heads up! |
When an exception occurs in an async callback in
pooledMap
, the exception is caught by surrounding try/catch but it also bubbles into an uncaught Promise Exception and crashes the process.Example stack trace:
I also made a simple gist to reproduce the issue: https://gist.github.com/wperron/1066ad43a77a3cd7aeb3bdecfa44d9d1
cc @lucacasonato
The text was updated successfully, but these errors were encountered: