Confirmed users
137
edits
Bent.mozilla (talk | contribs) |
Bent.mozilla (talk | contribs) No edit summary |
||
| Line 83: | Line 83: | ||
interface nsIDOMWorkerPool : nsIDOMWorkerThread | 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. | * The nsIDOMWorkerErrorListener which handles errors in child threads. | ||
| Line 307: | Line 315: | ||
' /* do something */ ' + | ' /* do something */ ' + | ||
'} '+ | '} '+ | ||
' | 'postMessageToPool("Done!"); '; | ||
var wp = navigator.newWorkerPool(); | var wp = navigator.newWorkerPool(); | ||