lib/zold/thread_pool.rb in zold-0.18.9 vs lib/zold/thread_pool.rb in zold-0.19.0
- old
+ new
@@ -123,10 +123,10 @@
@threads.map do |t|
{
name: t.name,
status: t.status,
alive: t.alive?,
- vars: t.thread_variables.map { |v| { v.to_s => t.thread_variable_get(v) } }
+ vars: Hash[t.thread_variables.map { |v| [v.to_s, t.thread_variable_get(v)] }]
}
end
end
# As a text