Publishes only the last element of a stream that satisfies an error-throwing predicate closure, after the stream finishes.
- 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 its parameter and returns a Boolean value that indicates whether to publish the element.
A publisher that only publishes the last element satisfying the given predicate.
If the predicate closure throws an error, the publisher fails with the thrown error.