@nextcloud/dialogs
    Preparing search index...

    Interface ReadableStreamDefaultController<R>

    The ReadableStreamDefaultController interface of the Streams API represents a controller allowing control of a ReadableStream's state and internal queue.

    MDN Reference

    interface ReadableStreamDefaultController<R = any> {
        desiredSize: number | null;
        close(): void;
        enqueue(chunk?: R): void;
        error(e?: any): void;
    }

    Type Parameters

    • R = any
    Index
    desiredSize: number | null

    The desiredSize read-only property of the required to fill the stream's internal queue.

    MDN Reference

    • The close() method of the ReadableStreamDefaultController interface closes the associated stream.

      MDN Reference

      Returns void

    • The enqueue() method of the js-nolint enqueue(chunk) - chunk - : The chunk to enqueue.

      MDN Reference

      Parameters

      • Optionalchunk: R

      Returns void

    • The error() method of the with the associated stream to error.

      MDN Reference

      Parameters

      • Optionale: any

      Returns void