mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 03:42:07 +00:00
LibWeb: Add method to get last added task to an EventLoop
This commit is contained in:
parent
995df8f565
commit
a53486a073
2 changed files with 9 additions and 0 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
void remove_tasks_matching(Function<bool(HTML::Task const&)>);
|
||||
ErrorOr<Vector<NonnullOwnPtr<Task>>> take_tasks_matching(Function<bool(HTML::Task const&)>);
|
||||
|
||||
Task const* last_added_task() const;
|
||||
|
||||
private:
|
||||
HTML::EventLoop& m_event_loop;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue