Re: Synchronous postMessage for Workers?

On Nov 17, 2011, at 2:37 PM, Glenn Maynard <glenn@zewt.org> wrote:

> On Thu, Nov 17, 2011 at 2:16 PM, Rick Waldron <waldron.rick@gmail.com> wrote:
> This is counter to the whole premise of Workers, which should be independent of their renderer process and certainly not block themselves while waiting for responses from the renderer (which inherently describes an async behaviour). 
> 
> That's backwards.  The premise is that the renderer (UI) will not be blocked by workers, not that workers won't be blocked by the renderer.

No, it's not. Messaging should not block either process. 

> 
> > Sync apis are sore thumb in GlobalWorkerScope's world.
> 
> I don't know what that means.  Synchronous APIs are one of the major reasons to have Workers in the first place.

Considering the current messaging API and the allowed host APIs, I strongly disagree. 



> 
> -- 
> Glenn Maynard
> 

Received on Thursday, 17 November 2011 23:18:10 UTC