Publishers
extension Publishers
-
This publisher may be used to ignore any errors of an upstream publisher and replace errors by
See more.finished
messages. Also consider looking atPublisher.ignoreError()
.Declaration
Swift
public struct IgnoreError<Upstream> : Publisher where Upstream : Publisher
-
This publisher can be used to ignore any errors of publishers which output values as
See moreResult
but never fail otherwise. Every time asuccess
element is emitted, it is passed through to the downstream subscriber, otherwise they are ignored. Also consider looking atPublisher.ignoreResultErrors()
.Declaration
Swift
public struct IgnoreResultErrors<Upstream, Output, Err>: Publisher where Upstream: Publisher, Err: Error, Upstream.Output == Result<Output, Err>, Upstream.Failure == Never