class Concurrent::RubyThreadPoolExecutor

def remaining_capacity

Returns:
  • (Integer) - the remaining_capacity
def remaining_capacity
  mutex.synchronize { @max_queue == 0 ? -1 : @max_queue - @queue.length }
end