import time


def wait_until(condition, iteration_duration=5, iterations=10):
    """
    Wait until condition would be true

    :param condition: callable condition that returns bool value
    :type condition: Callable
    :param iteration_duration: duration between checks in seconds
    :type iteration_duration: int
    :param iterations: maximum count of iterations
    :type iterations: int
    :return: object or False -- result or False
    """
    for _ in range(iterations):
        result = condition()
        if result:
            return result

        time.sleep(iteration_duration)

    return False