This is a simple countdown latch for Ruby. It's implemented under the covers with a Condition Variable.