Avatar
eraseToAnyPublisher は将来的には↓のようにできるようになると思います。 func f1() -> some Publisher<.Output = Int, .Failure = Never> { Just(1) }
3:37 AM
This maintains proposals for changes and user-visible enhancements to the Swift Programming Language. - swift-evolution/0328-structural-opaque-result-types.md at main · apple/swift-evolution