Skip to content

Instantly share code, notes, and snippets.

@wilson
Created October 22, 2008 15:57
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 wilson/18673 to your computer and use it in GitHub Desktop.
Save wilson/18673 to your computer and use it in GitHub Desktop.
t = Thread.new do
sleep 100_000
end
if t.join(1).nil?
t.kill
raise "whee!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment