Closed defagos closed 1 year ago
We only have to update the prototype to better use generic constraints. Note that Play SRG code that currently uses Publishers.AccumulateLatestMany
already works on type-erased publishers (returned by methods), so there is no code change to be made in the Play SRG codebase.
Publishers.AccumulateLatestMany
currently takesAnyPublisher
s as parameters but this is suboptimal, as this requires explicit type erase at the call site:We would prefer to write the same code as follows:
since publishers only have to agree on their output and error types. Type erasure is really not required here.