You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: vs_stdlib.rb
    path of file: ./repos/excon/benchmarks
    
    the code of the file until where you have to start completion: require 'sinatra/base'
require 'tach'

require File.join(File.expand_p
    
def with_server(&block)
  pid = Process.fork do
    Excon::Server.run
  end
  loop do
    sleep(1)
    begin
      Excon.get('http://localhost:9292/api/foo')
      break
    rescue
    end
  end