-
-
Notifications
You must be signed in to change notification settings - Fork 103
Closed
Description
I'm adding async and I love it so far - with one exception: exceptions. Well, those that are StandardErrors, anyway. Async swallows them.
task.rb:314:
rescue StandardError => error
failed!(error, false)
That false says to not re-raise it. So the task exits and says there "might have been" an exception and gives the backtrace - all of which is helpful - but not enough. Ideally I would like it to treat StandardErrors the same way as Exceptions. At the least I want some way to get at the swallowed exceptions so I can re-raise them myself.
I'm happy to code a solution - including passing a parameter to Async do -- Async(error_handling: :reraise) do, or something like that.
Metadata
Metadata
Assignees
Labels
No labels