1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:08:11 +00:00

LibWeb: Give HTML::EventLoop a "currently running task"

This commit is contained in:
Andreas Kling 2021-09-08 23:56:50 +02:00
parent bc3a432cb2
commit c8c9112652

View file

@ -21,8 +21,13 @@ public:
void spin_until(Function<bool()> goal_condition);
Task const* currently_running_task() const { return m_currently_running_task; }
private:
TaskQueue m_task_queue;
// https://html.spec.whatwg.org/multipage/webappapis.html#currently-running-task
Task* m_currently_running_task { nullptr };
};
EventLoop& main_thread_event_loop();