mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 17:03:20 -04:00
`RoomEventCache::subscribe` returns the set of events + the `RoomEventCacheListener`. However, creating this listener isn't cheap, especially dropping it. That's why this patch creates `RoomEventCache::events` to replace `subscribe` when the listener is not necessary.