Function mozjs::jsapi::JS::ReadableStreamReaderReleaseLock
source ยท pub unsafe extern "C" fn ReadableStreamReaderReleaseLock(
cx: *mut JSContext,
reader: Handle<*mut JSObject>,
) -> bool
Expand description
C++ equivalent of reader.releaseLock()
(both https://streams.spec.whatwg.org/#default-reader-release-lock and
https://streams.spec.whatwg.org/#byob-reader-release-lock).
reader
must be a stream reader created using JS::ReadableStreamGetReader
or an unwrappable wrapper for one.