W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2011

Re: Synchronous postMessage for Workers?

From: Glenn Maynard <glenn@zewt.org>
Date: Fri, 18 Nov 2011 12:07:49 -0500
Message-ID: <CABirCh9_UbHRVod8P-WQ95xCOzAZk8u=VO7+XQYKzEwfMyzMaA@mail.gmail.com>
To: David Levin <levin@chromium.org>
Cc: Jonas Sicking <jonas@sicking.cc>, Joshua Bell <jsbell@chromium.org>, public-webapps@w3.org
On Fri, Nov 18, 2011 at 11:50 AM, David Levin <levin@chromium.org> wrote:

> So the primary use case is code in the worker which has no other (async)
> messages coming in?
>

No--you can always create another message channel for other types of
messages, if you need to.

(Of course, you shouldn't receive messages on other ports *while* blocking;
that is, the event loop isn't spun while waiting.  That's just the same as
any other synchronous worker API.)

-- 
Glenn Maynard
Received on Friday, 18 November 2011 17:08:19 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:48 GMT