This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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