it-reader
    Preparing search index...

    Interface Reader<T>

    A specialized AsyncGenerator that lets you pass a number to the .next method which will attempt to return only that many bytes.

    interface Reader<T extends ArrayBufferLike = ArrayBufferLike> {
        "[asyncDispose]"(): PromiseLike<void>;
        "[asyncIterator]"(): AsyncGenerator<Uint8ArrayList<T>, void, any>;
        next(
            ...args: [] | [number | undefined],
        ): Promise<IteratorResult<Uint8ArrayList<T>, void>>;
        return(
            value: void | PromiseLike<void>,
        ): Promise<IteratorResult<Uint8ArrayList<T>, void>>;
        throw(e: any): Promise<IteratorResult<Uint8ArrayList<T>, void>>;
    }

    Type Parameters

    • T extends ArrayBufferLike = ArrayBufferLike

    Hierarchy

    Index

    Methods

    • Returns PromiseLike<void>