spec/support/queue_with_timeout.rb in slack-ruby-client-0.13.1 vs spec/support/queue_with_timeout.rb in slack-ruby-client-0.14.0

- old
+ new

@@ -4,18 +4,18 @@ @mutex = Mutex.new @queue = [] @recieved = ConditionVariable.new end - def push(x) + def push(item) @mutex.synchronize do - @queue << x + @queue << item @recieved.signal end end - def <<(x) - push(x) + def <<(item) + push(item) end def pop(non_block = false) pop_with_timeout(non_block ? 0 : nil) end