mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 23:26:36 +00:00
LibWeb: Implement an AO to get a promise to wait for promises to settle
This commit is contained in:
parent
cceb4321fc
commit
f7c095a318
Notes:
github-actions[bot]
2025-04-11 16:12:40 +00:00
Author: https://github.com/trflynn89
Commit: f7c095a318
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4311
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/shannonbooth ✅
2 changed files with 33 additions and 0 deletions
|
@ -30,6 +30,7 @@ GC::Ref<Promise> upon_fulfillment(Promise const&, GC::Ref<ReactionSteps>);
|
|||
GC::Ref<Promise> upon_rejection(Promise const&, GC::Ref<ReactionSteps>);
|
||||
void mark_promise_as_handled(Promise const&);
|
||||
void wait_for_all(JS::Realm&, Vector<GC::Ref<Promise>> const& promises, Function<void(Vector<JS::Value> const&)> success_steps, Function<void(JS::Value)> failure_steps);
|
||||
GC::Ref<Promise> get_promise_for_wait_for_all(JS::Realm&, Vector<GC::Ref<Promise>> const& promises);
|
||||
|
||||
// Non-spec, convenience method.
|
||||
GC::Ref<Promise> create_rejected_promise_from_exception(JS::Realm&, Exception);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue