@property
    def needed(self):
        return max(0, self._count)
Returns how many decrements are needed before latch is released.
dataset/ETHPy150Open openstack/taskflow/taskflow/types/latch.py/Latch.needed