From: Douglas Seifert Date: 2009-10-03T00:07:36+09:00 Subject: Re: Monitors on data structures --000e0cd11bcabbb8990474f508ef Content-Type: text/plain; charset=ISO-8859-1 On Fri, Oct 2, 2009 at 1:25 AM, Luc Heinrich wrote: > On 2 oct. 2009, at 05:08, Ken Bloom wrote: > > I guess threads just supress them in general. >> >> irb(main):001:0> Thread.start{raise NoMethodError} >> => # >> irb(main):002:0> >> > > irb(main):001:0> Thread.start { raise NoMethodException } > => # > > irb(main):002:0> Thread.abort_on_exception = true > => true > > irb(main):003:0> Thread.start { raise NoMethodException } > (irb):3:in `irb_binding': uninitialized constant NoMethodException > (NameError) > from (irb):3:in `start' > from (irb):3:in `irb_binding' > from /opt/local/lib/ruby/1.8/irb/workspace.rb:52:in `irb_binding' > from /opt/local/lib/ruby/1.8/irb/workspace.rb:52 > > Or you can save the reference to the thread and join it: irb(main):003:0> t = Thread.start{raise NoMethodError} => # irb(main):004:0> t.join NoMethodError: NoMethodError from (irb):3 from (irb):4:in `join' from (irb):4 from :0 --000e0cd11bcabbb8990474f508ef--