[ruby-core:75596] [Ruby trunk Feature#3944] Add Fiber#root? method

From: nobu@...
Date: 2016-05-18 09:39:13 UTC
List: ruby-core #75596
Issue #3944 has been updated by Nobuyoshi Nakada.

Description updated

Couldn't anyone explain how the method will be used and why it will be necessary?
As far as I read, it sounds that it's EM specific and EM should take care of it.

----------------------------------------
Feature #3944: Add Fiber#root? method
https://bugs.ruby-lang.org/issues/3944#change-58733

* Author: Mike Perham
* Status: Feedback
* Priority: Normal
* Assignee: Koichi Sasada
----------------------------------------
 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.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next