Skip to content

Commit 975ffdb

Browse files
committed
Give a name to the background thread
1 parent e5911a3 commit 975ffdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/timeout.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ def self.create_timeout_thread
120120
requests.reject!(&:done?)
121121
end
122122
end
123+
watcher.name = "Timeout stdlib thread"
123124
watcher.thread_variable_set(:"\0__detached_thread__", true)
124125
watcher
125126
end

0 commit comments

Comments
 (0)