Python aiter() built-in function
Example
>>> async def aitersync(iterable):
... results = []
... async for x in aiter(iterable):
... results.append(x)
... return iter(results)
>>> async def aitersync(iterable):
... results = []
... async for x in aiter(iterable):
... results.append(x)
... return iter(results)