is there standard method that able to lazy fetch next chunk of data and yield it by elements
currently I'm fetching all of chunks and chain them with itertools
def list_blobs(container_name:str, prefix:str):
chunks = []
next_marker=None
while True:
blobs = blob_service.list_blobs(container_name, prefix=prefix, num_results=100, marker=next_marker)
next_marker = blobs.next_marker
chunks.append(blobs)
if not next_marker:
break
return itertools.chain.from_iterable(chunks)
what is the "lazy" version of list_blobs fetcher?