Republishes elements while a error-throwing predicate closure indicates publishing should continue.
- 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 its parameter and returns a Boolean value indicating whether publishing should continue.
A publisher that passes through elements until the predicate throws or indicates publishing should finish.
The publisher finishes when the closure returns
false. If the closure throws, the publisher fails with the thrown error.