Interface DataReaderSource

Interface for a data reader source.

interface DataReaderSource {
    read(): | ReadableStreamReadResult<Uint8Array>
    | Promise<ReadableStreamReadResult<Uint8Array>>;
}

Implemented by

Methods

Methods

  • Reads a chunk from the source.

    Returns
        | ReadableStreamReadResult<Uint8Array>
        | Promise<ReadableStreamReadResult<Uint8Array>>

    the read result.