Skip to content

Instantly share code, notes, and snippets.

@wilson
Created Oct 22, 2008
Embed
What would you like to do?
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