Publishers

extension Publishers
  • This publisher may be used to ignore any errors of an upstream publisher and replace errors by .finished messages. Also consider looking at Publisher.ignoreError().

    See more

    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 Result but never fail otherwise. Every time a success element is emitted, it is passed through to the downstream subscriber, otherwise they are ignored. Also consider looking at Publisher.ignoreResultErrors().

    See more

    Declaration

    Swift

    public struct IgnoreResultErrors<Upstream, Output, Err>: Publisher
    where Upstream: Publisher, Err: Error, Upstream.Output == Result<Output, Err>,
        Upstream.Failure == Never