LibWeb: Support taking matching tasks out of a task queue

This will be needed for HTMLMediaElement.
This commit is contained in:
Timothy Flynn 2023-04-04 09:06:10 -04:00 committed by Linus Groh
commit 9a370a5eed
Notes: sideshowbarker 2024-07-17 12:02:22 +09:00
2 changed files with 19 additions and 0 deletions

View file

@ -32,6 +32,7 @@ public:
}
void remove_tasks_matching(Function<bool(HTML::Task const&)>);
ErrorOr<Vector<NonnullOwnPtr<Task>>> take_tasks_matching(Function<bool(HTML::Task const&)>);
private:
HTML::EventLoop& m_event_loop;