From fe998a4e0f145931752c2c8b6a46c7d279396b08 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Mon, 15 Jul 2024 12:54:09 +1200 Subject: [PATCH] Add comment. --- lib/async/task.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/async/task.rb b/lib/async/task.rb index 89965ce..8030c5c 100644 --- a/lib/async/task.rb +++ b/lib/async/task.rb @@ -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