Method: Zold::ThreadPool#exists?

Defined in:
lib/zold/thread_pool.rb

#exists?(name) ⇒ Boolean

A thread with this name exists?

Returns:

  • (Boolean)


127
128
129
# File 'lib/zold/thread_pool.rb', line 127

def exists?(name)
  !@threads.find { |t| t.name == name }.nil?
end