class Concurrent::RubyThreadPoolExecutor

def length

Returns:
  • (Integer) - the length
def length
  mutex.synchronize{ running? ? @pool.length : 0 }
end