mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Give HTML::EventLoop a "currently running task"
This commit is contained in:
parent
bc3a432cb2
commit
c8c9112652
Notes:
sideshowbarker
2024-07-18 04:24:37 +09:00
Author: https://github.com/awesomekling
Commit: c8c9112652
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue