ruby-changes:65618
From: Kazuhiro <ko1@a...>
Date: Mon, 22 Mar 2021 19:04:01 +0900 (JST)
Subject: [ruby-changes:65618] ad0fa53203 (master): [DOC] some methods of Fiber do not need to require anymore [Feature #17407]
https://git.ruby-lang.org/ruby.git/commit/?id=ad0fa53203 From ad0fa53203720d52cff2d5c8b293fea5c6889dbb Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Mon, 22 Mar 2021 18:59:25 +0900 Subject: [DOC] some methods of Fiber do not need to require anymore [Feature #17407] --- cont.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cont.c b/cont.c index 31f60d8..4eab72f 100644 --- a/cont.c +++ b/cont.c @@ -2445,8 +2445,7 @@ rb_fiber_reset_root_local_storage(rb_thread_t *th) https://github.com/ruby/ruby/blob/trunk/cont.c#L2445 * * Returns true if the fiber can still be resumed (or transferred * to). After finishing execution of the fiber block this method will - * always return +false+. You need to <code>require 'fiber'</code> - * before using this method. + * always return +false+. */ VALUE rb_fiber_alive_p(VALUE fiber_value) @@ -2598,8 +2597,7 @@ rb_fiber_backtrace_locations(int argc, VALUE *argv, VALUE fiber) https://github.com/ruby/ruby/blob/trunk/cont.c#L2597 * Transfer control to another fiber, resuming it from where it last * stopped or starting it if it was not resumed before. The calling * fiber will be suspended much like in a call to - * Fiber.yield. You need to <code>require 'fiber'</code> - * before using this method. + * Fiber.yield. * * The fiber which receives the transfer call treats it much like * a resume call. Arguments passed to transfer are treated like those @@ -2631,8 +2629,6 @@ rb_fiber_backtrace_locations(int argc, VALUE *argv, VALUE fiber) https://github.com/ruby/ruby/blob/trunk/cont.c#L2629 * * Example: * - * require 'fiber' - * * manager = nil # For local var to be visible inside worker block * * # This fiber would be started with transfer @@ -2715,8 +2711,7 @@ rb_fiber_s_yield(int argc, VALUE *argv, VALUE klass) https://github.com/ruby/ruby/blob/trunk/cont.c#L2711 * call-seq: * Fiber.current -> fiber * - * Returns the current fiber. You need to <code>require 'fiber'</code> - * before using this method. If you are not running in the context of + * Returns the current fiber. If you are not running in the context of * a fiber this method will return the root fiber. */ static VALUE -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/