lib/kakegane/countdown_latch.rb
##
# Causes the current thread to wait until the latch has counted down to zero.
# If the count is zero, it returns immediately
# If the count is more than zero, the thread lies dormant for scheduling
Causes the current thread to wait until the latch has counted down to zero.
If the count is zero, it returns immediately
If the count is more than zero, the thread lies dormant for scheduling
Causes the current thread to wait until the latch has counted down to zero . If the count is zero it returns immediately If the count is more than zero the thread lies dormant for scheduling
def wait
      @mutex.synchronize do
        @condition.wait @mutex if @count > 0
      end
    end
def wait @mutex . synchronize do @condition . wait @mutex if @count > 0 end end
Causes the current thread to wait until the latch has counted down to zero.
Causes the current thread to wait until the latch has counted down to zero .