aislice

Async version of itertools.islice.

Signature:

def aislice(
aiterable: AsyncIterator[_T] | AsyncIterable[_T],
start: int | None = None,
stop: int | None = None,
step: int | None = None,
) -> AsyncIterator[_T]:
...

Parameters:

  1. aiterable:

    Type
    AsyncIterator[_T] | AsyncIterable[_T]
  2. start:

    Type
    int | None
    Default
    None
  3. stop:

    Type
    int | None
    Default
    None
  4. step:

    Type
    int | None
    Default
    None