- From: Chaals Nevile <chaals@yandex.ru>
- Date: Sun, 20 May 2018 20:37:14 +0200
- To: public-webapps@w3.org
- Message-ID: <op.zjbsocxmnd6f5a@ordhord>
You're certainly welcome to use this mailing list to ake a proposal,
although note that before it can be adopted into a W3c specification we
would ask you to commit to hte terms of the W3C Patent Policy:
https://www.w3.org/Consortium/Patent-Policy/
Alternatives are to provide an issue on the relevant repo - in this case
https://github.com/w3c/workers - for stuff that is *close*, or in WICG -
the Web Incubator Community Group - for things that are really ideas that
need some incubation before they are likely to be accepted:
https://discourse.wicg.io
cheers
On Fri, 11 May 2018 18:25:19 +0200, Andre Venancio
<info@andrevenancio.com> wrote:
> Hi,
> Not sure this is the best email to contact you guys regarding an API
> suggestion, but here it goes:
>
>
> I've been thinking about this for a while now, and I think it would be
> beneficial to update the Worker api to allow you to pass a IIFI function
> instead of >a external file?
>
> From: current Worker API:
>
> const worker = new Worker('lame.js');
> worker.onmessage = (e) => {
> console.log(e);
> };
>
>> // lame.js
> this.addEventListener('message', (e) => {
> this.postMessage({ message: 'hello back' });
> });
>
> to
>
> const worker = new Worker(() => {
> this.addEventListener('message', (e) => {
> this.postMessage({ message: 'hello back' });
> });
> });
> worker.onmessage = (e) => {
> console.log(e);
> };
>
>
> Wouldn't this be better?
>
> Thanks
> Andre
--
Chaals: Charles (McCathie) Nevile find more at https://yandex.com
Using Opera's long-abandoned mail client: http://www.opera.com/mail/
Is there really still nothing better?
Received on Sunday, 20 May 2018 18:37:37 UTC