If I understand you correctly, you want to infinitly loop over your dataloader until a breaking condiction is matched?
You could do something like this (assuming your Dataloader instance is stored in variable loader):
loader_iter = iter(loader)

while True:

    try:
        current_batch = next(loader_iter)
    except StopIteration:
        loader_iter = iter(loader)
        current_batch = next(loader_iter)

    ... # your following data processing steps

    if breaking_condition:
        break