Worker.terminate()
El método terminate()
de la interfaz Worker
termina inmediatamente el Worker
. Esto no ofrece la oportunidad de finalizar las operaciones que estuviera realizando el worker, termina la ejecución por completo.
Sintaxis
js
myWorker.terminate();
Parámetros
Ninguno.
Retorna
Nada.
Ejemplo
Especificaciones
Specification |
---|
HTML # dom-worker-terminate-dev |
Compatibilidad con navegadores
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.
Mirar también
La interfaz Worker
a la que pertenece.