From bc43cdd21520278efdd286855606c15e93d6f85f Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 24 Jun 2025 16:46:21 +0900 Subject: [PATCH] Add signature for `Fiber#blocking` --- core/fiber.rbs | 11 +++++++++++ test/stdlib/Fiber_test.rb | 7 +++++++ 2 files changed, 18 insertions(+) diff --git a/core/fiber.rbs b/core/fiber.rbs index e6cc0e391..de79acd20 100644 --- a/core/fiber.rbs +++ b/core/fiber.rbs @@ -101,6 +101,17 @@ class Fiber < Object # def self.[]=: [A] (Symbol, A) -> A + # + # Forces the fiber to be blocking for the duration of the block. Returns the + # result of the block. + # + # See the "Non-blocking fibers" section in class docs for details. + # + def self.blocking: [T] () { (Fiber) -> T } -> T + #