terminate
Summary
Immediately terminates the worker with which the object is associated.
Method of apis/workers/Workerapis/workers/Worker
Syntax
object.terminate();
Return Value
No return value
Notes
You can terminate a worker thread inside its own code by using the self.close() method.
Related specifications
- W3C Web Workers Specification
- W3C Editor’s Draft
Attributions
Microsoft Developer Network: Windows Internet Explorer API reference Article