(self)
| 204 | return self.first_result is not None or self.find_cursor.alive |
| 205 | |
| 206 | async def __anext__(self): |
| 207 | if self.first_result is not None: |
| 208 | first = self.first_result |
| 209 | self.first_result = None |
| 210 | return first |
| 211 | return await anext(self.find_cursor) |
| 212 | |
| 213 | # Added to support the iterateOnce operation. |
| 214 | try_next = __anext__ |