Improve wording.

This commit is contained in:
Joseph Cloutier
2022-03-30 13:42:36 -04:00
parent 00c2051119
commit 29a2d35544

View File

@@ -88,16 +88,14 @@ class HTML5Thread {
url.hash += __workerCount;
__workerCount++;
// Prepare to send the job.
job.makePortable();
// Create the worker. Because the worker's scope will not include a
// `window`, `HTML5Thread.__init__()` will add a listener.
var thread:HTML5Thread = new HTML5Thread(url.href, new Worker(url.href));
// Send a message to the listener.
// Run `job` on the new thread.
thread.sendMessage(job);
return thread;