From: nobu@... Date: 2021-01-04T01:47:04+00:00 Subject: [ruby-core:101898] [Ruby master Feature#17407] Fiber.current and require 'fiber' Issue #17407 has been updated by nobu (Nobuyoshi Nakada). https://github.com/nobu/ruby/tree/fiber-builtin ---------------------------------------- Feature #17407: Fiber.current and require 'fiber' https://bugs.ruby-lang.org/issues/17407#change-89739 * Author: zverok (Victor Shepelev) * Status: Open * Priority: Normal ---------------------------------------- Maybe it is not the right time to ask, but why one need to do `require 'fiber'` before using `Fiber.current`? For what I can see, * it is this way since [their introduction](https://docs.ruby-lang.org/en/2.0.0/Fiber.html#method-c-current), * the actual code is defined in the core [cont.c](https://github.com/ruby/ruby/blob/master/cont.c#L2480) * the `ext/fiber.c` [does very little](https://github.com/ruby/ruby/blob/master/ext/fiber/fiber.c) 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. -- https://bugs.ruby-lang.org/ Unsubscribe: