Skip to content

Commit

Permalink
use await
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Dec 16, 2024
1 parent 4862d9c commit 0c159ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/datafusion/record_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def next(self) -> RecordBatch | None:

async def __anext__(self) -> RecordBatch:
"""Async iterator function."""
next_batch = self.rbs.__anext__()
next_batch = await self.rbs.__anext__()
return RecordBatch(next_batch)

def __next__(self) -> RecordBatch:
Expand Down

0 comments on commit 0c159ce

Please sign in to comment.