Worker.terminate()
Метод terminate()
интерфейса Worker
немедленно завершает работу worker
. Работнику не даётся возможность завершить свою работу, он останавливается сразу.
Синтаксис
js
myWorker.terminate();
Параметры
Нет.
Возвращаемое значение
Void.
Пример
Спецификации
Specification |
---|
HTML # dom-worker-terminate-dev |
Совместимость с браузерами
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
terminate |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- Has more compatibility info.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Смотрите также
Интерфейс Worker
.