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