init(upstream:output:)
Creates a publisher that replaces any errors in the stream with a provided element.
Declaration
init(upstream: Upstream, output: Publishers.ReplaceError<Upstream>.Output)Parameters
- upstream:
The element with which to replace errors from the upstream publisher.
- output:
The publisher from which this publisher receives elements.