mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:57:35 +00:00
LibWeb: Give HTML::EventLoop a "currently running task"
This commit is contained in:
parent
bc3a432cb2
commit
c8c9112652
1 changed files with 5 additions and 0 deletions
|
@ -21,8 +21,13 @@ public:
|
||||||
|
|
||||||
void spin_until(Function<bool()> goal_condition);
|
void spin_until(Function<bool()> goal_condition);
|
||||||
|
|
||||||
|
Task const* currently_running_task() const { return m_currently_running_task; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TaskQueue m_task_queue;
|
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();
|
EventLoop& main_thread_event_loop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue