Feature #3944

Add Fiber#root? method

Added by Mike Perham over 3 years ago. Updated 7 months ago.

Assignee:Koichi Sasada
Target version:Next Major


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.


#1 Updated by Yui NARUSE over 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Koichi Sasada



#2 Updated by Lin Jen-Shin about 2 years ago

Any progress on this?

#3 Updated by Koichi Sasada almost 2 years ago

  • Description updated (diff)

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)

#4 Updated by Koichi Sasada over 1 year ago

  • Status changed from Assigned to Feedback

#5 Updated by Koichi Sasada over 1 year ago

  • Status changed from Feedback to Assigned
  • Target version set to Next Major

#6 Updated by Julien A about 1 year ago

what is Next Major ? 3.0 ???
The issue was more than 2 years ago, after looking at the code the implementation should not be a challenge and yet nothing.
it is so depressing watching the ruby redmine seriously...

#7 Updated by Zachary Scott about 1 year ago

Julien please see ruby-core:45849 and also read up on the wiki: http://bugs.ruby-lang.org/projects/ruby/wiki/HowToRequestFeatures

#8 Updated by Koichi Sasada 7 months ago

  • Status changed from Assigned to Feedback

Also available in: Atom PDF