From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../countqueuingstrategy/index.html | 76 +++++++++++++++++++++ files/ja/web/api/countqueuingstrategy/index.html | 78 ++++++++++++++++++++++ .../web/api/countqueuingstrategy/size/index.html | 70 +++++++++++++++++++ 3 files changed, 224 insertions(+) create mode 100644 files/ja/web/api/countqueuingstrategy/countqueuingstrategy/index.html create mode 100644 files/ja/web/api/countqueuingstrategy/index.html create mode 100644 files/ja/web/api/countqueuingstrategy/size/index.html (limited to 'files/ja/web/api/countqueuingstrategy') diff --git a/files/ja/web/api/countqueuingstrategy/countqueuingstrategy/index.html b/files/ja/web/api/countqueuingstrategy/countqueuingstrategy/index.html new file mode 100644 index 0000000000..069e8e5361 --- /dev/null +++ b/files/ja/web/api/countqueuingstrategy/countqueuingstrategy/index.html @@ -0,0 +1,76 @@ +--- +title: CountQueuingStrategy.CountQueuingStrategy() +slug: Web/API/CountQueuingStrategy/CountQueuingStrategy +tags: + - API + - Constructor + - CountQueuingStrategy + - Experimental + - Reference + - Streams +translation_of: Web/API/CountQueuingStrategy/CountQueuingStrategy +--- +
{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}
+ +

CountQueuingStrategy() コンストラクターは、CountQueuingStrategy オブジェクトのインスタンスを作成して返します。

+ +

構文

+ +
var countQueuingStrategy = new CountQueuingStrategy({highWaterMark});
+ +

パラメーター

+ +
+
{highWaterMark}
+
highWaterMark プロパティを含むオブジェクト。 これは、バックプレッシャーが適用される前に内部キューに含めることができるチャンクの総数を定義する負でない整数です。
+
+ +

戻り値

+ +

{{domxref("CountQueuingStrategy")}} オブジェクトのインスタンス。

+ +

例外

+ +

なし。

+ +

+ +
const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
+
+const writableStream = new WritableStream({
+  // シンクの実装
+  write(chunk) {
+    ...
+  },
+  close() {
+    ...
+  },
+  abort(err) {
+    console.log("Sink error:", err);
+  }
+}, queuingStrategy);
+
+var size = queuingStrategy.size();
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName("Streams","#cqs-constructor","CountQueuingStrategy()")}}{{Spec2('Streams')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.CountQueuingStrategy.CountQueuingStrategy")}}

diff --git a/files/ja/web/api/countqueuingstrategy/index.html b/files/ja/web/api/countqueuingstrategy/index.html new file mode 100644 index 0000000000..9bd152f8be --- /dev/null +++ b/files/ja/web/api/countqueuingstrategy/index.html @@ -0,0 +1,78 @@ +--- +title: CountQueuingStrategy +slug: Web/API/CountQueuingStrategy +tags: + - API + - CountQueuingStrategy + - Experimental + - Interface + - Reference + - Streams +translation_of: Web/API/CountQueuingStrategy +--- +

{{SeeCompatTable}}{{APIRef("Streams")}}

+ +

Streams APICountQueuingStrategy インターフェイスは、ストリームの構築時に使用できる組み込みのチャンクカウントキューイング戦略を提供します。

+ +

コンストラクター

+ +
+
{{domxref("CountQueuingStrategy.CountQueuingStrategy", "CountQueuingStrategy()")}}
+
新しい CountQueuingStrategy オブジェクトのインスタンスを作成します。
+
+ +

プロパティ

+ +

なし。

+ +

メソッド

+ +
+
{{domxref("CountQueuingStrategy.size()")}}
+
1 を返します。
+
+ +

+ +
const queueingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
+
+const writableStream = new WritableStream({
+  // シンクの実装
+  write(chunk) {
+    ...
+  },
+  close() {
+    ...
+  },
+  abort(err) {
+    console.log("Sink error:", err);
+  }
+}, queueingStrategy);
+
+var size = queueingStrategy.size();
+
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName('Streams','#cqs-class','CountQueuingStrategy')}}{{Spec2('Streams')}}初期定義
+ +

ブラウザーの互換性

+ +
+ + +

{{Compat("api.CountQueuingStrategy")}}

+
diff --git a/files/ja/web/api/countqueuingstrategy/size/index.html b/files/ja/web/api/countqueuingstrategy/size/index.html new file mode 100644 index 0000000000..b54d66a65d --- /dev/null +++ b/files/ja/web/api/countqueuingstrategy/size/index.html @@ -0,0 +1,70 @@ +--- +title: CountQueuingStrategy.size() +slug: Web/API/CountQueuingStrategy/size +tags: + - API + - CountQueuingStrategy + - Experimental + - Method + - Reference + - Streams + - size +translation_of: Web/API/CountQueuingStrategy/size +--- +
{{draft}}{{SeeCompatTable}}{{APIRef("Streams")}}
+ +

{{domxref("CountQueuingStrategy")}} インターフェイスの size() メソッドは常に 1 を返すため、合計キューサイズはキュー内のチャンク数を数えたものになります。

+ +

構文

+ +
var size = countQueuingStrategy.size();
+ +

パラメーター

+ +

なし。

+ +

戻り値

+ +

1

+ +

+ +
const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
+
+const writableStream = new WritableStream({
+  // シンクの実装
+  write(chunk) {
+    ...
+  },
+  close() {
+    ...
+  },
+  abort(err) {
+    console.log("Sink error:", err);
+  }
+}, queuingStrategy);
+
+var size = queuingStrategy.size();
+ +

仕様

+ + + + + + + + + + + + + + +
仕様状態コメント
{{SpecName("Streams","#cqs-size","size")}}{{Spec2('Streams')}}初期定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.CountQueuingStrategy.size")}}

-- cgit v1.2.3-54-g00ecf