Interface DataWriterSink

Interface for a data writer sink.

interface DataWriterSink {
    write(chunk: Uint8Array): void | Promise<void>;
}

Implemented by

Methods

Methods

  • Writes the given chunk to the sink.

    Parameters

    • chunk: Uint8Array

      Chunk of data to write to the sink.

    Returns void | Promise<void>

    a promise if write operation is asynchronous, nothing when write operation is synchronous.