Function continually

  • Creates an endless Stream of values produced by getItem. The function return value is not cached; it's invoked separately to get each item.

    Type Parameters

    • T

      Items type

    Parameters

    • getItem: () => T

      Function that produces items.

    Returns Stream<T>

    An endless stream of values produced by getItem.