interface nsIDOMWorkerPool : nsIDOMWorkerThread
{
/**
* The nsIDOMWorkerMessageListener which handles messages for this pool.
*
* Developers should set this attribute to a proper object before another
* worker begins sending messages to ensure that all messages are received.
*/
attribute nsIDOMWorkerMessageListener messageListener;
/**
* The nsIDOMWorkerErrorListener which handles errors in child threads.
' /* do something */ ' +
'} '+
'sendMessageToPoolpostMessageToPool("Done!"); ';
var wp = navigator.newWorkerPool();