Skip to content

Instantly share code, notes, and snippets.

@enebo
Last active November 3, 2016 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enebo/7b32df26efe5630c69a0422b6f557b98 to your computer and use it in GitHub Desktop.
Save enebo/7b32df26efe5630c69a0422b6f557b98 to your computer and use it in GitHub Desktop.
4.times do |i|
threads << Thread.new(i) do
connection = pool.connection
assert_not_nil connection
connection.close
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment