stdlib/builtin/thread.rbs in rbs-0.14.0 vs stdlib/builtin/thread.rbs in rbs-0.15.0
- old
+ new
@@ -238,11 +238,11 @@
# .
#
# There is also a class level method to set this for all threads, see
# [::abort\_on\_exception=](Thread.downloaded.ruby_doc#method-c-abort_on_exception-3D)
# .
- def abort_on_exception=: (bool abort_on_exception) -> untyped
+ def abort_on_exception=: (boolish abort_on_exception) -> untyped
# Adds *proc* as a handler for tracing.
#
# See
# [\#set\_trace\_func](Thread.downloaded.ruby_doc#method-i-set_trace_func)
@@ -422,11 +422,11 @@
# .
#
# There is also a class level method to set this for all new threads, see
# [::report\_on\_exception=](Thread.downloaded.ruby_doc#method-c-report_on_exception-3D)
# .
- def report_on_exception=: (bool report_on_exception) -> untyped
+ def report_on_exception=: (boolish report_on_exception) -> untyped
# Wakes up `thr`, making it eligible for scheduling.
#
# ```ruby
# a = Thread.new { puts "a"; Thread.stop; puts "c" }
@@ -1047,11 +1047,11 @@
#
#
#
# Also aliased as: [deq](Queue.downloaded.ruby_doc#method-i-deq),
# [shift](Queue.downloaded.ruby_doc#method-i-shift)
- def pop: (?bool non_block) -> untyped
+ def pop: (?boolish non_block) -> untyped
# Pushes the given `object` to the queue.
#
#
#
@@ -1094,10 +1094,10 @@
#
#
#
# Also aliased as: [enq](SizedQueue.downloaded.ruby_doc#method-i-enq),
# [\<\<](SizedQueue.downloaded.ruby_doc#method-i-3C-3C)
- def push: (untyped obj, ?bool non_block) -> void
+ def push: (untyped obj, ?boolish non_block) -> void
end
ConditionVariable: singleton(Thread::ConditionVariable)
Mutex: singleton(Thread::Mutex)