Project

General

Profile

Actions

Feature #19453

closed

Move `Fiber.current` into core.

Added by ioquatix (Samuel Williams) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Target version:
-
[ruby-core:112517]

Description

i.e. don't require 'fiber' to use Fiber.current. Are there other methods we should consider too?

Updated by Eregon (Benoit Daloze) about 1 year 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) about 1 year ago

  • Status changed from Open to Closed

Awesome, thanks for the details!

Actions

Also available in: Atom PDF

Like0
Like0Like0