Function mozjs_sys::jsapi::JS::ReadableStreamReaderReleaseLock

source ยท
pub unsafe extern "C" fn ReadableStreamReaderReleaseLock(
    cx: *mut JSContext,
    reader: HandleObject,
) -> 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.