From: "Eric I." Date: 2007-10-14T00:40:03+09:00 Subject: Re: Is there a standard pattern for threaded access to a file? On Oct 13, 6:33 am, Robert Klemme wrote: > There is a better option: rather send something down the queue that is > *not a String* - otherwise processing would suddenly stop if the file > contained the terminating line. That's a very nice solution. It demonstrates a lot of accumulatd wisdom. I think I'd use a symbol in the queue, such as :end_of_data, rather than the queue itself to mark the end of the data, if only to avoid a "huh?" moment from those who read the code down the line. Eric ---- On-site, hands-on Ruby training is available from http://LearnRuby.com !