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 + #