Add RequestIter._next__ for synchronous iteration

This commit is contained in:
Lonami Exo 2019-02-27 16:13:11 +01:00
parent 6b50152bb3
commit f66d65d409

View File

@ -80,6 +80,9 @@ class RequestIter(abc.ABC):
self.index += 1
return result
def __next__(self):
return self.client.loop.run_until_complete(self.__anext__())
def __aiter__(self):
self.buffer = None
self.index = 0