Issue #595 has been updated by ko1 (Koichi Sasada). あれ,これ 3.0 でいいんだっけ. ---------------------------------------- Bug #595: Fiber ignores ensure clause https://bugs.ruby-lang.org/issues/595#change-28431 Author: ko1 (Koichi Sasada) Status: Assigned Priority: Normal Assignee: ko1 (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
on 2012-07-25 12:09
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.