[Assigned] Fiber ignores ensure clause

Issue #595 has been updated by Yui NARUSE.

Status changed from Closed to Assigned
Target version changed from 1.9.3 to 3.0


Bug #595: Fiber ignores ensure clause
https://bugs.ruby-lang.org/issues/595

Author: Koichi Sasada
Status: Assigned
Priority: Normal
Assignee: Koichi Sasada
Category: core
Target version: 3.0
ruby -v: -

=begin
Ruby プロセス終了時,Fiber が ensure を無視します.
これは,前から直そうと思って手がついていなかった問題です.
10月末までには直そうと思います.結構複雑なので,後回しにしていましました.

fib = Fiber.new{
begin
Fiber.yield :ok
ensure
puts “should be print out”
end
}
p fib.resume
=end

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs