Sounds good to me as well. As long as it's very clearly defined that
this doesn't return to the event loop and so UI events, timers,
network events, etc MUST NOT be processed between the tasks under any
circumstances.

I.e. something like:

function spinner() {
 window.enqueueMicrotask(spinner)
}
spinner();

MUST behave like
while(1) {};

If any implementation breaks that we're likely to see a race to the
bottom which makes this no different than setTimeout(f, 0);

/ Jonas


On Wed, Jan 13, 2016 at 2:03 PM, Kyle Huey <m...@kylehuey.com> wrote:
> In principle, I don't see any reason not to do this.
>
> - Kyle
>
> On Wed, Jan 13, 2016 at 1:59 PM, Boris Zbarsky <bzbar...@mit.edu> wrote:
>
>> Please see https://github.com/whatwg/html/issues/512
>>
>> Right now this is in the "does anyone have an objection to the basic
>> idea?" stage.  So if someone does, please speak up!
>>
>> I've already noted a possible concern about abuse, but Promise and
>> MutationObserver kinda allow that already; it just takes a bit of skill to
>> do it.  I haven't thought of other problems with it thus far.
>>
>> -Boris
>> _______________________________________________
>> dev-platform mailing list
>> dev-platform@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-platform
>>
> _______________________________________________
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to