pep-492: Fix example code
This commit is contained in:
parent
86e9b6efcc
commit
eaf9ea6841
|
@ -507,7 +507,7 @@ The following code illustrates new asynchronous iteration protocol::
|
|||
def __init__(self):
|
||||
self.buffer = collections.deque()
|
||||
|
||||
def _prefetch(self):
|
||||
async def _prefetch(self):
|
||||
...
|
||||
|
||||
async def __aiter__(self):
|
||||
|
|
Loading…
Reference in New Issue