Created
November 1, 2011 04:32
-
-
Save cjameshuff/1329946 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
t = Thread.new {10.times {|x| puts x; sleep 1}} | |
while buf = Readline.readline | |
p buf | |
if(buf == 'q') | |
break | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.6.0]