Publishes a single Boolean value that indicates whether all received elements pass a given error-throwing predicate.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
A closure that evaluates each received element. Return
trueto continue, or
falseto cancel the upstream and complete. The closure may throw, in which case the publisher cancels the upstream publisher and fails with the thrown error.
A publisher that publishes a Boolean value that indicates whether all received elements pass a given predicate.