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

{{domxref("ReadableStreamBYOBReader")}} インターフェイスの cancel() メソッドはストリームをキャンセルし、コンシューマーがストリームに興味を失ったことを通知します。 提供された reason パラメーターは、基になるソースに与えられ、使用する場合もしない場合もあります。

+ +
+

:リーダーがアクティブな場合、cancel() メソッドは、関連するストリームの場合({{domxref("ReadableStream.cancel()")}})と同じように振る舞います。

+
+ +

構文

+ +
var promise = readableStreamBYOBReader.cancel(reason);
+ +

パラメーター

+ +
+
reason
+
人間が読むことができるキャンセルの理由を提供する {{domxref("DOMString")}}。
+
+ +

戻り値

+ +

{{jsxref("Promise")}}。 reason パラメーターで指定された値で満たされます。

+ +

例外

+ +
+
TypeError
+
ソースオブジェクトが ReadableStreamBYOBReader ではないか、ストリームに所有者がいません。
+
+ +

+ +

未定。

+ +

仕様

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

ブラウザーの互換性

+ + + +

{{Compat("api.ReadableStreamBYOBReader.cancel")}}

-- cgit v1.2.3-54-g00ecf