Actions
Feature #19453
closedMove `Fiber.current` into core.
    Feature #19453:
    Move `Fiber.current` into core.
  
Description
i.e. don't require 'fiber' to use Fiber.current. Are there other methods we should consider too?
        
           Updated by Eregon (Benoit Daloze) over 2 years ago
          Updated by Eregon (Benoit Daloze) over 2 years ago
          
          
        
        
      
      This seems already the case for 3.1 and 3.2:
$ ruby -v --disable-gems -e 'puts $"; p Fiber.current'
ruby 3.1.3p185 (2022-11-24 revision 1a6b16756e) [x86_64-linux]
enumerator.so
thread.rb
fiber.so
rational.so
complex.so
ruby2_keywords.rb
/home/eregon/.rubies/ruby-3.1.3/lib/ruby/3.1.0/x86_64-linux/enc/encdb.so
/home/eregon/.rubies/ruby-3.1.3/lib/ruby/3.1.0/x86_64-linux/enc/trans/transdb.so
#<Fiber:0x00007f0ca7a1e400 (resumed)>
Not for 3.0 or before.
        
           Updated by ioquatix (Samuel Williams) over 2 years ago
          Updated by ioquatix (Samuel Williams) over 2 years ago
          
          
        
        
      
      - Status changed from Open to Closed
Awesome, thanks for the details!
Actions