core/fiber.rbs in rbs-3.2.2 vs core/fiber.rbs in rbs-3.3.0.pre.1
- old
+ new
@@ -266,11 +266,11 @@
# be an instance of Hash.
#
# Explicitly using `storage: true` is currently experimental and may change in
# the future.
#
- def initialize: (?blocking: boolish, ?storage: true | Hash[Symbol | String, untyped] | nil) { (*untyped) -> void } -> void
+ def initialize: (?blocking: boolish, ?storage: true | Hash[interned, untyped] | nil) { (*untyped) -> void } -> void
# <!--
# rdoc-file=cont.c
# - fiber.alive? -> true or false
# -->
@@ -412,11 +412,11 @@
# - fiber.storage -> hash (dup)
# -->
# Returns a copy of the storage hash for the fiber. The method can only be
# called on the Fiber.current.
#
- def storage: () -> Hash[Symbol | String, untyped]
+ def storage: () -> Hash[interned, untyped]
# <!--
# rdoc-file=cont.c
# - fiber.storage = hash
# -->
@@ -436,10 +436,10 @@
# # Reset the per-request state:
# Fiber.current.storage = nil
# handle_request(request)
# end
#
- def storage=: (Hash[Symbol | String, untyped]) -> Hash[Symbol | String, untyped]
+ def storage=: (Hash[interned, untyped]) -> Hash[interned, untyped]
# <!--
# rdoc-file=cont.c
# - to_s()
# -->