Attaches a subscriber with closure-based behavior to a publisher that never fails.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
The closure to execute on receipt of a value. If
nil, the sink uses an empty closure.
A subscriber that performs the provided closure upon receiving values.
This method creates the subscriber and immediately requests an unlimited number of values, prior to returning the subscriber.