Contents

init(upstream:predicate:)

Returns a publisher that publishes a single Boolean value that indicates whether all received elements pass a given error-throwing predicate.

Declaration

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

Parameters

  • upstream:

    The publisher from which this publisher receives elements.

  • predicate:

    A closure that evaluates each received element.