pub unsafe extern "C" fn ReadableStreamTee(
cx: *mut JSContext,
stream: Handle<*mut JSObject>,
branch1Stream: MutableHandle<*mut JSObject>,
branch2Stream: MutableHandle<*mut JSObject>,
) -> 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.