@kayahr/datastream

    Interface DataWriterSink

    Interface for a data writer sink.

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

    Implemented by

    Index

    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.

    MMNEPVFCICPMFPCPTTAAATR