Fiber.current and require 'fiber'
Maybe it is not the right time to ask, but why one need to do
require 'fiber' before using
For what I can see,
- it is this way since their introduction,
- the actual code is defined in the core cont.c
ext/fiber.cdoes very little
I was just bitten by it again preparing the changelog (stuck with
NoMethodError and for a few minutes thought the build is broken), is there a reason to have it this way?..
Just clarifying for docs sake, at least.
Updated by Eregon (Benoit Daloze) over 1 year ago
Maybe we should just include these Fiber methods in core, and
require 'fiber' would be a no-op (for compatibility)?
Agreed it's confusing such a core class has only half the documented methods defined without an extra