Skip to main content

Module stream

Module stream 

Source

Re-exports§

pub use algorithms::CancelAlgorithm;
pub use algorithms::PullAlgorithm;
pub use algorithms::StartAlgorithm;

Modules§

algorithms

Structs§

ReadableStream

Enums§

ReadableStreamState

Functions§

lock_readable_stream
Acquire a default reader for the stream, locking it. Subsequent getReader() calls from JS will throw per spec.
tee_readable_stream
Tee a ReadableStream into two branches. The stream must not be locked or disturbed.
try_sync_drain_closed_stream
Fast-path drain for a default-controller ReadableStream whose queue holds all the data synchronously (e.g. the stream was enqueued in start() and then closed). Bypasses the JS reader + Promise machinery, so user code that poisons Object.prototype.then cannot swap the streamed chunks (WPT response-stream-with-broken-then).