@szilanor/stream
    Preparing search index...

    Function fromAsync

    • Returns an AsyncStream from an iterable (Array, Set, Map, Stream...)

      Type Parameters

      • T

        Type of items in the iterable.

      Parameters

      • Optionaliterable: AsyncIterable<T, any, any>

        Iterable to convert to an AsyncStream.

      Returns AsyncStream<T>

      AsyncStream that yields elements of the iterable.

      const result = fromAsync<number>([1, 2, 3]);
      console.log(result); // [1, 2, 3]