[Bug 15007] Add an API to queue a task

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15007

--- Comment #32 from Glenn Maynard <glenn@zewt.org> 2011-12-07 15:25:28 UTC ---
(In reply to comment #31)
> It's hard to implement a bug-free polyfill, as evidenced by the comments above.

We implemented this in just a few minutes with MessageChannel, so I don't think
this is true.  The fact that we didn't get it right on our very first pass
doesn't mean it's hard to implement, and in any case people don't need to
implement it themselves; they can use the above code.

To make it explicit: the parts of the above queueTask function written by me
are in the public domain.

If code like this is made available in jQuery and Prototype, and ends up being
used a lot, then maybe it's worth looking further into providing a native
method, but right now I don't think it's needed.

FYI, note that MessageChannel does incur a delay in Chrome (~0-10ms), but this
happens as far as I can see on *all* async callbacks in that browser, so I
expect a native method for this would be no different.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 7 December 2011 15:25:39 UTC