Instance Method

allSatisfy(_:)

Publishes a single Boolean value that indicates whether all received elements pass a given predicate.

Declaration

func allSatisfy(_ predicate: @escaping ((Output0, Output1)) -> Bool) -> Publishers.AllSatisfy<Publishers.MapKeyPath2<Upstream, Output0, Output1>>

Parameters

predicate

A closure that evaluates each received element. Return true to continue, or false to cancel the upstream and complete.

Return Value

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