def wait(self, timeout=None):
        watch = timeutils.StopWatch(duration=timeout)
        watch.start()
        with self._cond:
            while self._count > 0:
                if watch.expired():
                    return False
                else:
                    self._cond.wait(watch.leftover(return_none=True))
            return True
Tests that passing a view function to ``resolve_url`` will result in
dataset/ETHPy150Open openstack/taskflow/taskflow/types/latch.py/Latch.wait--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/regressiontests/resolve_url/tests.py/ResolveUrlTests.test_valid_view_name