W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2008

[whatwg] workers

From: Alexey Proskuryakov <ap@webkit.org>
Date: Tue, 30 Sep 2008 20:10:27 +0400
Message-ID: <7D40ADB2-665A-47E5-A33B-361ED767E784@webkit.org>

Sep 30, 2008, ? 7:19 PM, Aaron Boodman ???????(?):

> I'm of the opinion that there should be as little difference as
> possible, to lower the amount of API to learn. Therefore in my
> preferred proposal, the only difference between SharedWorker and
> DedicatedWorker is that the latter has a close() method. It doesn't
> make sense to allow one user of a SharedWorker to close something
> others are depending on.

I'm not sure it's so good in the case of dedicated workers either, as  
they can be used from other contexts via additional message ports. The  
close() method could just close the default port.

Both shared and dedicated workers have to maintain a strong reference  
to a context that created them, just to have a context to execute  
event listeners in. So, they are basically the same as far as  
implementation is concerned AFAICT.

- WBR, Alexey Proskuryakov
Received on Tuesday, 30 September 2008 09:10:27 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:05 UTC