/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim:set ts=2 sw=2 sts=2 et cindent: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://streams.spec.whatwg.org/#abstract-opdef-readablestreamdefaulttee // Pull Algorithm Steps: void TeeState::PullCallback(JSContext* aCx, nsIGlobalObject* aGlobal,
ErrorResult& aRv) { // Step 13.1: If reading is true, if (Reading()) { // Step 13.1.1: Set readAgain to true.
SetReadAgain(true);
// Step 13.1.2: Return a promise resolved with undefined. // (The caller will create it if necessary) return;
}
// Step 13.2: Set reading to true.
SetReading(true);
// Step 13.3: Let readRequest be a read request with the following items:
RefPtr<ReadRequest> readRequest = new ReadableStreamDefaultTeeReadRequest(this);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.