Worker: terminate() method
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 stopped at once.
Syntax
terminate()
Parameters
None.
Return value
None (undefined
).
Examples
Specifications
Specification |
---|
HTML Standard # dom-worker-terminate-dev |
Browser compatibility
BCD tables only load in the browser
See also
The Worker
interface it belongs to.