LibWeb: Return the ID of queued global events

This will allow callers to track the event.
This commit is contained in:
Timothy Flynn 2024-03-22 15:24:03 -04:00 committed by Andreas Kling
commit 4806cf9527
Notes: sideshowbarker 2024-07-17 05:18:58 +09:00
2 changed files with 4 additions and 2 deletions

View file

@ -116,7 +116,7 @@ private:
};
EventLoop& main_thread_event_loop();
void queue_global_task(HTML::Task::Source, JS::Object&, JS::SafeFunction<void()> steps);
int queue_global_task(HTML::Task::Source, JS::Object&, JS::SafeFunction<void()> steps);
void queue_a_microtask(DOM::Document const*, JS::SafeFunction<void()> steps);
void perform_a_microtask_checkpoint();