You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/async/task.rb
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
# Copyright, 2023, by Math Ieu.
9
9
10
10
require"fiber"
11
-
require"console/event/failure"
11
+
require"console"
12
12
13
13
require_relative"node"
14
14
require_relative"condition"
@@ -198,9 +198,7 @@ def run(*arguments)
198
198
rescue=>error
199
199
# 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.
200
200
if@finished.nil?
201
-
Console::Event::Failure.for(error).emit(self,"Task may have ended with unhandled exception.",severity: :warn)
0 commit comments