Is there a way to avoid using AnyPublisher/eraseToAnyPublisher all over the place?
问题 I'm just learning how to use Combine. I have experience with Rx (RxSwift and RxJava) and I'm noticing that it's quite similar. However, one thing that is quite different (and kind of annoying) is that the Publisher protocol doesn't use generics for its Output and Failure types; it uses associated types instead. What this means is that I can't specify a polymorphic Publisher type (such as Publisher<Int, Error> ) and simply return any type that conforms to Publisher with those types. I need to