From: Tee Dubb Date: 2010-07-15T00:28:02+09:00 Subject: trouble waiting X minutes I am making a constant network connection that is feeding me information, i want to take that information and place into nested / two-dimensional array for 1 minute, below is the code that's not working. class Test def initialize @junk = Array.new @opensocket = TCPSocket.new('localhost', 8080) read end def read while @lines = @opensocket.gets FasterCSV.parse(@lines) do |@row| pass end end end def pass @junk << @row sleep(60) p @junk end end enable = Test.new So after I sleep for 1 minute you would think the @junk two dimensional array has filled up but it hasn't, what's the best way to solve this problem? -- Posted via http://www.ruby-forum.com/.