stdlib/builtin/fiber.rbs in rbs-0.3.1 vs stdlib/builtin/fiber.rbs in rbs-0.4.0
- old
+ new
@@ -60,9 +60,13 @@
# 14
# FiberError: dead fiber called
class Fiber < Object
def self.yield: (*untyped args) -> untyped
- def initialize: () { () -> void } -> Fiber
+ def initialize: () { () -> untyped } -> void
def resume: (*untyped args) -> untyped
+
+ def raise: () -> untyped
+ | (string message) -> untyped
+ | (_Exception exception, ?string message, ?Array[String] backtrace) -> untyped
end