From: Roger Pack Date: 2007-11-13T04:23:27+09:00 Subject: Re: Threading from a loop > My current code is as follows: > > cl.add_message_callback do |m| > if m.type != :error > #break off > newreplythread = Thread.new(cl, m) { > #function call is here > } > end > } > > (Maybe I'm mistaking the loop for something else, but it's behaviour > apears the same) > > > Thanks > > NickPoole Code looks good to me unless its never being called. http://www.rubycentral.com/pickaxe/tut_threads.html -- Posted via http://www.ruby-forum.com/.