Omits elements from the upstream publisher until an error-throwing closure returns false, before republishing all remaining elements.
- iOS 13.0+Beta
- macOS 10.15+Beta
- Mac Catalyst 13.0+Beta
- tvOS 13.0+Beta
- watchOS 6.0+Beta
- Xcode 11.0+Beta
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.