Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Worker.terminate()

この翻訳は不完全です。英語から この記事を翻訳 してください。

The terminate() method of the Worker interface immediately terminates the Worker. This does not offer the worker an opportunity to finish its operations; it is simply stopped at once.

構文

myWorker.terminate();

引数

無し。

返り値

Void.

The following code snippet shows creation of a Worker object using the Worker() constructor, which is then immediately terminated.

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

myWorker.terminate();

仕様

Specification Status Comment
WHATWG HTML Living Standard
The definition of 'Worker.postMessage()' in that specification.
Living Standard No change from Web Workers.
Web Workers
The definition of 'Worker.postMessage()' in that specification.
勧告候補 Initial definition.

ブラウザ互換性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 4 3.5 10.0 10.6 4
Feature Android Firefox Mobile (Gecko) Firefox OS (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support 4.4 3.5 1.0.1 10.0 11.5 5.1

関連項目

The Worker interface it belongs to.

ドキュメントのタグと貢献者

 このページの貢献者: lv7777
 最終更新者: lv7777,