()
| 209 | ait = async_gen.__aiter__() |
| 210 | |
| 211 | async def get_next(): |
| 212 | try: |
| 213 | obj = await ait.__anext__() |
| 214 | return False, obj |
| 215 | except StopAsyncIteration: |
| 216 | return True, None |
| 217 | |
| 218 | while True: |
| 219 | done, obj = event_loop.run_until_complete(get_next()) |