lib/zold/node/async_entrance.rb in zold-0.14.35 vs lib/zold/node/async_entrance.rb in zold-0.14.36

- old
+ new

@@ -67,10 +67,10 @@ @pool = Concurrent::FixedThreadPool.new( AsyncEntrance::THREADS, max_queue: AsyncEntrance::THREADS, fallback_policy: :abort ) AsyncEntrance::THREADS.times do |t| @pool.post do - Thread.current.name = "async-#{t}" + Thread.current.name = "async-e##{t}" loop do VerboseThread.new(@log).run(true) { take } break if @pool.shuttingdown? sleep Random.rand(100) / 100 end