Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 15, 2024
1 parent 416d4fa commit fe998a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/async/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def run(*arguments)
schedule do
@block.call(self, *arguments)
rescue => error
# I'm not completely happy with this overhead, but the alternative is to not log anything which makes debugging extremely difficult. Maybe we can introduce a debug wrapper which adds extra logging.
if @finished.nil?
Console::Event::Failure.for(error).emit("Task may have ended with unhandled exception.", severity: :warn)
# else
Expand Down

0 comments on commit fe998a4

Please sign in to comment.