class ActionController::Live::Buffer

def each_chunk(&block)

def each_chunk(&block)
  loop do
    str = nil
    ActiveSupport::Dependencies.interlock.permit_concurrent_loads do
      str = @buf.pop
    end
    break unless str
    yield str
  end
end