Skip to content

RangeOptions

How a range document fetches.

readonly optional blockSize?: number

Fetches are widened to whole blocks of this many bytes (default: the source’s, else 4096).


readonly optional budget?: number

The most bytes the document may hold (default: no limit); more is source-budget-exceeded.


readonly optional maxRounds?: number

Rounds of fetches per call before giving up with the last data-pending (default 1024).


readonly optional readahead?: number

Extra bytes fetched after each range (default 0).


readonly optional signal?: AbortSignal

Aborts the open’s fetches: it rejects with the signal’s reason. Later calls take their own signal (Document.ensure).