Project

General

Profile

Actions

Feature #8849

closed

Thread#throw

Added by takiuchi (Genki Takiuchi) over 10 years ago. Updated over 10 years ago.

Status:
Rejected
Assignee:
-
Target version:
[ruby-dev:47679]

Description

Thread#raise と同様に、Threadのcontextでthrowする。

t = Thread.current
catch :foo do
Thread.new do
t.throw :foo
end
end

ユースケースとしては、Issue #8845 を修正するために raise の代わりに throw を使うことが考えられる。

Actions

Also available in: Atom PDF

Like0
Like0