- From: poot <cvsmail@w3.org>
- Date: Tue, 21 Jun 2011 18:05:03 -0400
- To: public-html-diffs@w3.org
workers; hixie: improve explanatory text (whatwg r6266) http://dev.w3.org/cvsweb/html5/workers/Overview.html?r1=1.294&r2=1.295&f=h http://html5.org/tools/web-apps-tracker?from=6265&to=6266 =================================================================== RCS file: /sources/public/html5/workers/Overview.html,v retrieving revision 1.294 retrieving revision 1.295 diff -u -d -r1.294 -r1.295 --- Overview.html 21 Jun 2011 21:26:39 -0000 1.294 +++ Overview.html 21 Jun 2011 22:04:56 -0000 1.295 @@ -405,8 +405,9 @@ // found a prime! postMessage(n); }</pre><p>The bulk of this code is simply an unoptimized search for a prime - number. To send a message back to the page, the <code title="dom-DedicatedWorkerGlobalScope-send">send()</code> - method is used to post a message when a prime is found.<p><a href="http://www.whatwg.org/demos/workers/primes/page.html">View this example online</a>.<h4 id="a-worker-for-updating-a-client-side-database"><span class="secno">1.2.2 </span>A worker for updating a client-side database</h4><p><i>This section is non-normative.</i><p>In this example, the main document spawns a worker whose only + number. The <code title="dom-DedicatedWorkerGlobalScope-postMessage"><a href="#dom-dedicatedworkerglobalscope-postmessage">postMessage()</a></code> + method is used to send a message back to the page when a prime is + found.<p><a href="http://www.whatwg.org/demos/workers/primes/page.html">View this example online</a>.<h4 id="a-worker-for-updating-a-client-side-database"><span class="secno">1.2.2 </span>A worker for updating a client-side database</h4><p><i>This section is non-normative.</i><p>In this example, the main document spawns a worker whose only task is to listen for notifications from the server, and, when appropriate, either add or remove data from the client-side database.<p>Since no communication occurs between the worker and the main
Received on Tuesday, 21 June 2011 22:05:05 UTC