Function fromIterable

  • Yield values from iterable, one at a time. Use interval to add time between each item. The first item is yielded without delay.

    Type Parameters

    • V

    Parameters

    • iterable: Iterable<V> | AsyncIterable<V>

      Iterable or AsyncIterable

    • Optionalinterval: Interval = 1

      Interval to wait between yield

    Returns AsyncGenerator<V>