Methods

This topic has not yet been rated - Rate this topic

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.

 

 

 

Build date: 11/21/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.