Instance Method

eraseToAnyPublisher()

Wraps this publisher with a type eraser.

Declaration

func eraseToAnyPublisher() -> AnyPublisher<Prefix.Output, Prefix.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.