From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/worker/terminate/index.html | 107 +++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 files/ja/web/api/worker/terminate/index.html (limited to 'files/ja/web/api/worker/terminate') diff --git a/files/ja/web/api/worker/terminate/index.html b/files/ja/web/api/worker/terminate/index.html new file mode 100644 index 0000000000..ea5d426f9b --- /dev/null +++ b/files/ja/web/api/worker/terminate/index.html @@ -0,0 +1,107 @@ +--- +title: Worker.terminate() +slug: Web/API/Worker/terminate +translation_of: Web/API/Worker/terminate +--- +

{{APIRef("Web Workers API")}}

+ +

{{domxref("Worker")}}インターフェイスのterminate()メソッドは{{domxref("Worker")}}を即座に停止します。これはworkerに対してその動作を終了する機会を提供するものではありません。単純に即時停止をします。

+ +

構文

+ +
myWorker.terminate();
+ +

引数

+ +

無し。

+ +

返り値

+ +

Void.

+ +

+ +

次のコードでは{{domxref("Worker")}}オブジェクトを{{domxref("Worker.Worker", "Worker()")}} コンストラクタで作成したあと、すぐに停止しています。

+ +
var myWorker = new Worker("worker.js");
+
+myWorker.terminate();
+
+ +

仕様

+ + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', "#dom-worker-terminate", "Worker.postMessage()")}}{{Spec2('HTML WHATWG')}}No change from {{SpecName("Web Workers")}}.
{{SpecName('Web Workers', "#dom-worker-terminate", "Worker.postMessage()")}}{{Spec2('Web Workers')}}Initial definition.
+ +

ブラウザ互換性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support43.510.010.64
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)Firefox OS (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support4.43.51.0.110.011.55.1
+
+ +

関連項目

+ +

The {{domxref("Worker")}} interface it belongs to.

-- cgit v1.2.3-54-g00ecf