@szilanor/stream
    Preparing search index...

    Variable streamAsyncConst

    streamAsync: <T>(iterable?: AsyncIterable<T, any, any>) => AsyncStream<T> = fromAsync

    Type Declaration

      • <T>(iterable?: AsyncIterable<T, any, any>): AsyncStream<T>
      • 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]