class Concurrent::RubyThreadPoolExecutor

def remaining_capacity

@!macro thread_pool_executor_attr_reader_remaining_capacity
def remaining_capacity
  synchronize do
    if ns_limited_queue?
      @max_queue - @queue.length
    else
      -1
    end
  end
end