class Aws::EndpointCache
def update_polling_pool(key, thread)
param [String] key
update polling threads pool
def update_polling_pool(key, thread) unless @pool.size < @max_threads _, thread = @pool.shift Thread.kill(thread) end @pool[key] = thread end