From: "takiuchi (Genki Takiuchi)" Date: 2013-08-31T17:30:56+09:00 Subject: [ruby-dev:47679] [ruby-trunk - Feature #8849][Open] Thread#throw Issue #8849 has been reported by takiuchi (Genki Takiuchi). ---------------------------------------- Feature #8849: Thread#throw https://bugs.ruby-lang.org/issues/8849 Author: takiuchi (Genki Takiuchi) Status: Open Priority: Normal Assignee: Category: Target version: current: 2.1.0 Thread#raise と同様に、Threadのcontextでthrowする。 t = Thread.current catch :foo do Thread.new do t.throw :foo end end ユースケースとしては、Issue #8845 を修正するために raise の代わりに throw を使うことが考えられる。 -- http://bugs.ruby-lang.org/