Instance Method

eraseToAnyPublisher()

Wraps this publisher with a type eraser.

Declaration

func eraseToAnyPublisher() -> AnyPublisher<(A.Output, B.Output, C.Output, D.Output), A.Failure>

Return Value

An AnyPublisher wrapping this publisher.

Discussion

Use eraseToAnyPublisher() to expose an instance of AnyPublisher to the downstream subscriber, rather than this publisher’s actual type.