1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

LibCore: Cancel jobs on event loop exit

This important feature was regressed with the recent architectural
change.
This commit is contained in:
kleines Filmröllchen 2023-05-11 21:58:40 +02:00 committed by Andrew Kaster
parent f2609281a3
commit 7704d89496
Notes: sideshowbarker 2024-07-17 06:29:49 +09:00
3 changed files with 12 additions and 0 deletions

View file

@ -29,6 +29,7 @@ public:
// Used by Threading::BackgroundAction.
void add_job(NonnullRefPtr<Promise<NonnullRefPtr<Object>>>);
void cancel_all_pending_jobs();
// Returns true if there are events waiting to be flushed.
bool has_pending_events() const;