mirror of
https://github.com/servo/servo
synced 2026-05-13 10:27:03 +02:00
This implements GenericReceiverSet similar to IpcReceiverSet. This allows us to wait on a group of channels. IpcReceiverSet was allowed to use IpcReceivers of different type, i.e., `IpcReceiver<Foo>` and `IpcReceiver<Bar>` in the same select query. This changes with GenericReceiverSet to only allow one type, i.e., `GenericReceiver<Foo>`. As this functionality was only used in the CoreResourceThread, we changed the setup slightly for the memory reporter. With this we also change the implementation of CoreResourceThread to now use the GenericReceiverSet. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com> Testing: New testcases were added to GenericReceiverSet and browsing works normally. --------- Signed-off-by: Narfinger <Narfinger@users.noreply.github.com> Signed-off-by: Josh Matthews <josh@joshmatthews.net> Co-authored-by: Josh Matthews <josh@joshmatthews.net>