See https://html.spec.whatwg.org/#microtask-queue and
https://html.spec.whatwg.org/#spin-the-event-loop
It's just about whether your microtask tries to spin the event loop
multiple times. If you were to spin the event loop when the current task is
a compound microtask, then you'd end up moving all the subtasks after the
first one that spins the event loop into a later full task, which is
probably not what you want. Instead you wrap such subtasks in
https://html.spec.whatwg.org/#execute-a-compound-microtask-subtask
On Mon, Oct 3, 2016 at 2:49 AM Anne van Kesteren <annevk@annevk.nl> wrote:
> Hey Adam, Rafael, and Ian,
>
> Do any of you remember the distinction between compound and solitary
> microtasks? I haven't succeeded figuring it out from the
> specification. https://www.w3.org/Bugs/Public/show_bug.cgi?id=24810
> has some of the motivation as the first comment, but I can't really
> think of a practical scenario where that would happen.
>
> Olli has likewise been trying to figure this out for a while and has
> not succeeded. Any help would be greatly appreciated.
>
> Kind regards,
>
>
> --
> https://annevankesteren.nl/
>