WebIDLpedia

ReadableStreamDefaultReader interface

Definition

Streams Standard defines ReadableStreamDefaultReader



[Exposed=*]
interface ReadableStreamDefaultReader {
  constructor(ReadableStream stream);

  Promise<ReadableStreamReadResult> read();
  undefined releaseLock();
};
ReadableStreamDefaultReader includes ReadableStreamGenericReader;
Consolidated IDL (across mixin and partials)


[Exposed=*]
interface ReadableStreamDefaultReader {
  constructor(ReadableStream stream);

  Promise<ReadableStreamReadResult> read();
  undefined releaseLock();
  readonly attribute Promise<undefined> closed;

  Promise<undefined> cancel(optional any reason);
};

Methods and attributes that return objects implementing ReadableStreamDefaultReader