mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-13 02:16:39 +02:00
The one current caller of this function always defers microtask checkpoints before calling wait_for_all, ensuring that the promise accept/reject handlers will always be called later in the Web event loop processing. We need to store all the state for the closures in a heap allocated object with HeapFunctions to keep it around while there are still promises to resolve.
12 KiB
12 KiB