From: "ko1 (Koichi Sasada)" Date: 2012-06-26T04:49:20+09:00 Subject: [ruby-core:45849] [ruby-trunk - Feature #3944] Add Fiber#root? method Issue #3944 has been updated by ko1 (Koichi Sasada). Description updated Sorry for long absent. I'm not sure why Fiber#root? is needed. Could you give the examples? I think if you don't use Fiber#root, then Fiber#root? is not needed. And I can't understand why Fiber#root is needed. (I think Fiber#root is for Fiber#transfer) ---------------------------------------- Feature #3944: Add Fiber#root? method https://bugs.ruby-lang.org/issues/3944#change-27432 Author: mperham (Mike Perham) Status: Assigned Priority: Normal Assignee: ko1 (Koichi Sasada) Category: Target version: =begin Since the root fiber is treated differently than other Fibers (e.g. you can't yield from the root), code which can optionally use fibers for high-performance IO (in my case, the Mysql2 driver) needs Fiber#root? to know when it can use Fibers to execute a query versus using a standard blocking call. =end -- http://bugs.ruby-lang.org/