1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:47:35 +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:
kleines Filmröllchen 2022-12-29 14:53:05 +01:00 committed by Linus Groh
parent afd0f941b7
commit bfd9f681f7
6 changed files with 48 additions and 35 deletions

View file

@ -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()