mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 15:58:56 +00:00
LibCore+Userland: Allow canceling promises
To make EventLoop cancel its managed Promises, we need the ability to cancel them in the first place.
This commit is contained in:
parent
afd0f941b7
commit
bfd9f681f7
Notes:
sideshowbarker
2024-07-16 23:34:49 +09:00
Author: https://github.com/kleinesfilmroellchen
Commit: bfd9f681f7
Pull-request: https://github.com/SerenityOS/serenity/pull/16715
Issue: https://github.com/SerenityOS/serenity/issues/14945
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/BenWiederhake
6 changed files with 48 additions and 35 deletions
|
@ -577,7 +577,7 @@ void CookieJar::select_all_cookies_from_database(OnSelectAllCookiesResult on_res
|
|||
promise->resolve({});
|
||||
});
|
||||
|
||||
promise->await();
|
||||
MUST(promise->await());
|
||||
}
|
||||
|
||||
void CookieJar::purge_expired_cookies()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue