Re: Synchronous postMessage for Workers?

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 UTC