lib/concurrent-ruby/concurrent/atomic/event.rb in concurrent-ruby-1.1.9 vs lib/concurrent-ruby/concurrent/atomic/event.rb in concurrent-ruby-1.1.10

- old
+ new

@@ -17,22 +17,22 @@ # event = Concurrent::Event.new # # t1 = Thread.new do # puts "t1 is waiting" # event.wait(1) - # puts "event ocurred" + # puts "event occurred" # end # # t2 = Thread.new do # puts "t2 calling set" # event.set # end # # [t1, t2].each(&:join) # # # prints: - # # t2 calling set # # t1 is waiting + # # t2 calling set # # event occurred class Event < Synchronization::LockableObject # Creates a new `Event` in the unset state. Threads calling `#wait` on the # `Event` will block.