Class Iterable<T>Abstract

Abstract class representing an iterable, lazy-loaded dataset.

Abstract

Type Parameters

  • T

Hierarchy

Constructors

Properties

index: number = 0

The current index of the iterable.

Methods

  • Get the item of this iterable at the given index, if one exists.

    Returns

    Promise<any|undefined>

    Parameters

    • i: number

    Returns Promise<undefined | T>

  • Instantiate a new injectable using the container.

    Type Parameters

    • T

    Parameters

    • target: any
    • Rest ...parameters: any[]

    Returns T

  • Peek at the next value of the iterable, without advancing.

    Returns

    Promise<any|undefined>

    Returns Promise<undefined | T>

  • Advance the iterable to the given index.

    Returns

    Promise

    Parameters

    • index: number

    Returns Promise<void>