We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b8b323 commit f188df6Copy full SHA for f188df6
lib/ferrum/utils/thread.rb
@@ -6,8 +6,8 @@ module Thread
6
module_function
7
8
def spawn(abort_on_exception: true)
9
- ::Thread.new(abort_on_exception) do
10
- ::Thread.current.abort_on_exception = abort_on_exception
+ ::Thread.new(abort_on_exception) do |whether_abort_on_exception|
+ ::Thread.current.abort_on_exception = whether_abort_on_exception
11
::Thread.current.report_on_exception = true if ::Thread.current.respond_to?(:report_on_exception=)
12
13
yield
0 commit comments