1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/timeout] Give a name to the background thread

https://github.com/ruby/timeout/commit/5594ae2f4d
This commit is contained in:
Jean Boussier 2022-07-13 13:48:21 +02:00 committed by git
parent 268269687c
commit 8290d76647

View file

@ -120,6 +120,7 @@ module Timeout
requests.reject!(&:done?)
end
end
watcher.name = "Timeout stdlib thread"
watcher.thread_variable_set(:"\0__detached_thread__", true)
watcher
end