mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -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.