SRGSSR / srgdataprovider-apple

A library to retrieve SRG SSR unified metadata
MIT License
0 stars 1 forks source link

Avoid type erasure need in accumulation publishers #40

Closed defagos closed 1 year ago

defagos commented 1 year ago

Pull request

Description

This PR improves Publishers.AccumulateLatestMany signature so that it can be used without type erasure.

Changes made

This accumulator publisher is now also part of Pillarbox Core package. I thoroughly tested its behavior there and I propose to backport prototype improvements to SRG Data Provider in the meantime.

Publisher testing support is far better in Pillarbox. For this reason I decided not to add other tests which are made in Pillarbox.

pyby commented 1 year ago

@defagos Thanks to shared this improvement to the library.