Actions
Feature #19453
closedMove `Fiber.current` into core.
Description
i.e. don't require 'fiber'
to use Fiber.current
. Are there other methods we should consider too?
Actions
Like0
Like0Like0
Added by ioquatix (Samuel Williams) about 2 years ago. Updated about 2 years ago.
Description
i.e. don't require 'fiber'
to use Fiber.current
. Are there other methods we should consider too?
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.
Awesome, thanks for the details!