Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Methods

This section describes the methods associated with the Web Workers API.

In this section

TopicDescription

clearInterval

Clears an interval created by the setInterval method.

clearTimeout

Clears an interval set by the setInterval method.

close

Stops a worker when called inside worker code.

importScripts

Loads and executes one or more scripts into the worker specified by a URL.

postMessage

Sends a message from the worker to the parent thread.

setInterval

Calls a specified function at specified intervals in milliseconds.

setTimeout

Calls a specified function after a specified number of milliseconds.

terminate

Terminates a worker thread immediately.

 

 

 

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft