Last active
November 3, 2016 16:07
-
-
Save enebo/7b32df26efe5630c69a0422b6f557b98 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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