Omits elements from the upstream publisher until an error-throwing closure returns false, before republishing all remaining elements.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
A closure that takes an element as a parameter and returns a Boolean value indicating whether to drop the element from the publisher’s output.
A publisher that skips over elements until the provided closure returns
false, and then republishes all remaining elements. If the predicate closure throws, the publisher fails with an error.
If the predicate closure throws, the publisher fails with an error.