Sha256: 09df9e50177803876841cf859c43a66f4cc32b4f448768ee05c0a306a8a3d0d8

Contents?: true

Size: 280 Bytes

Versions: 27

Compression:

Stored size: 280 Bytes

Contents

# -*- encoding: binary -*-
# :enddoc:
class Rainbows::CoolioThreadPool::Watcher < Coolio::TimerWatcher
  def initialize(threads)
    @threads = threads
    super(Rainbows.server.timeout, true)
  end

  def on_timer
    @threads.each { |t| t.join(0) and Rainbows.quit! }
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rainbows-5.2.1 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-5.2.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-5.1.1 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-5.1.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-5.0.0.5.ge717 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-5.0.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.7.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.6.2 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.6.1 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.6.0.4.g4108 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.6.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.5.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.4.3 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.4.2 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.4.1.1.gd5c8c lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.4.1 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.4.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.3.1 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.3.0 lib/rainbows/coolio_thread_pool/watcher.rb
rainbows-4.2.0 lib/rainbows/coolio_thread_pool/watcher.rb