Utility batching function for async iterables.
abatch_iterate(
size: int,
iterable: AsyncIterable[T],
) -> AsyncIterator[list[T]]| Name | Type | Description |
|---|---|---|
size* | int | The size of the batch. |
iterable* | AsyncIterable[T] | The async iterable to batch. |