CompactValidatePublisher

public struct CompactValidatePublisher<Upstream> : Publisher where Upstream : Publisher

CompactValidatePublisher

A Combine operator that validates upstream output and sends valid non-nil objects downstream.

  • The output type of this publisher.

    Declaration

    Swift

    public typealias Output = Upstream.Output
  • The failure type of this publisher.

    Declaration

    Swift

    public typealias Failure = Upstream.Failure
  • Attaches a downstreaam Subscriber that will receive validated values.

    See also

    Publisher

    Declaration

    Swift

    public func receive<Downstream>(subscriber: Downstream) where Downstream : Subscriber, Upstream.Failure == Downstream.Failure, Upstream.Output == Downstream.Input

    Parameters

    subscriber

    The downstream subscriber to attach.