Constructor

Variables

read onlyclosed:Promise<Void>

A promise that fulfills when the stream closes, or rejects on error.

Methods

cancel(?reason:Any):Promise<Void>

Cancels the stream.

read():Promise<ReadableStreamReadResult>

Returns a promise for the next chunk.

releaseLock():Void

Releases the lock on the stream.