Skip to content

Instantly share code, notes, and snippets.

@cjameshuff
Created November 1, 2011 04:32
Show Gist options
  • Save cjameshuff/1329946 to your computer and use it in GitHub Desktop.
Save cjameshuff/1329946 to your computer and use it in GitHub Desktop.
t = Thread.new {10.times {|x| puts x; sleep 1}}
while buf = Readline.readline
p buf
if(buf == 'q')
break
end
end
@cjameshuff
Copy link
Author

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment