Make an iterator that returns object over and over again.

def repeat(obj, times=None):
    """Make an iterator that returns object over and over again."""
    if times is None:

        return AsyncIterWrapper(sync_itertools.repeat(obj))

    return AsyncIterWrapper(sync_itertools.repeat(obj, times))