stdlib/builtin/thread.rbs in rbs-0.4.0 vs stdlib/builtin/thread.rbs in rbs-0.5.0
- old
+ new
@@ -896,11 +896,11 @@
# Releases the lock held in `mutex` and waits; reacquires the lock on
# wakeup.
#
# If `timeout` is given, this method returns after `timeout` seconds
# passed, even if no other thread doesn't signal.
- def wait: (Mutex mutex, ?Integer timeout) -> self
+ def wait: (Thread::Mutex mutex, ?Integer timeout) -> self
end
# [Mutex](Mutex) implements a simple semaphore that
# can be used to coordinate access to shared data from multiple concurrent
# threads.
@@ -1076,10 +1076,10 @@
alias << push
# Alias for: [push](SizedQueue.downloaded.ruby_doc#method-i-push)
alias enq push
- def initialize: (Integer max) -> SizedQueue
+ def initialize: (Integer max) -> void
# Returns the maximum size of the queue.
def max: () -> Integer
# Sets the maximum size of the queue to the given `number` .