• Converts an async-iterable instance to a DOM stream.

    Type Parameters

    • T

    Parameters

    • source: AsyncIterable<T>

      The source async-iterable to convert to a DOM stream.

    • Optional strategy: QueuingStrategy<T>

      The queueing strategy to apply to the DOM stream.

    Returns ReadableStream<T>

  • Converts an async-iterable stream to a DOM stream.

    Type Parameters

    • T

    Parameters

    • source: AsyncIterable<T>

      The async-iterable stream to convert to a DOM stream.

    • options: ReadableBYOBStreamOptions<Uint8Array>

      The ReadableBYOBStreamOptions to apply to the DOM stream.

    Returns ReadableStream<Uint8Array>

  • Converts an async-iterable stream to a DOM stream.

    Type Parameters

    • T

    Parameters

    • source: AsyncIterable<T>

      The async-iterable stream to convert to a DOM stream.

    • options: ReadableByteStreamOptions<Uint8Array>

      The ReadableByteStreamOptions to apply to the DOM stream.

    Returns ReadableStream<Uint8Array>

Generated using TypeDoc