Contents

init(upstream:predicate:)

Creates a publisher that publishes a single Boolean value that indicates whether all received elements pass a given predicate.

Declaration

init(upstream: Upstream, predicate: @escaping (Upstream.Output) -> Bool)

Parameters

  • upstream:

    The publisher from which this publisher receives elements.

  • predicate:

    A closure that evaluates each received element.