Skip to main content

lock_readable_stream

Function lock_readable_stream 

Source
pub fn lock_readable_stream<'js>(
    ctx: Ctx<'js>,
    stream: Class<'js, ReadableStream<'js>>,
) -> Result<()>
Expand description

Acquire a default reader for the stream, locking it. Subsequent getReader() calls from JS will throw per spec.