From: nobu.nokada@... Date: 2004-12-20T09:52:17+09:00 Subject: Re: threads and errors Hi, At Mon, 20 Dec 2004 09:02:12 +0900, Charles Mills wrote in [ruby-talk:124052]: > What techniques are available for handling errors that occur in > threads? Thread#join propagats the exception occurred in the thread to the caller. Or, Thread#abort_on_exception flag directs to the interpreter to abort. > For example how do I find out that an error occured in t below? > > t = Thread.new { raise "error" } begin t.join rescue puts $! end -- Nobu Nakada