pub unsafe extern "C" fn ReadableStreamTee(
    cx: *mut JSContext,
    stream: HandleObject,
    branch1Stream: MutableHandleObject,
    branch2Stream: MutableHandleObject
) -> bool
Expand description

Tees the given ReadableStream and stores the two resulting streams in outparams. Returns false if the operation fails, e.g. because the stream is locked.

Asserts that |stream| is a ReadableStream object or an unwrappable wrapper for one.