init(upstream:transform:)
Creates a publisher that converts any failure from the upstream publisher into a new error.
Declaration
init(upstream: Upstream, transform: @escaping (Upstream.Failure) -> Failure)Parameters
- upstream:
The publisher from which this publisher receives elements.
- transform:
The closure that converts the upstream failure into a new error.