Skip to content

Instantly share code, notes, and snippets.

@garyharan
Created September 27, 2018 17:25
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 garyharan/273a5c14d4ed9ff69445c1f06cf9ec89 to your computer and use it in GitHub Desktop.
Save garyharan/273a5c14d4ed9ff69445c1f06cf9ec89 to your computer and use it in GitHub Desktop.
Reaching maximum threads in ruby
loop { Thread.new { sleep } rescue puts "Borked at #{Thread.list.count} threads." }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment