Calls an error-throwing closure with each received element and publishes any returned optional that has a value.
- 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
an error-throwing closure that receives a value and returns an optional value.
A publisher that republishes all non-
nil results of calling the transform closure.
If the closure throws an error, the publisher cancels the upstream and sends the thrown error to the downstream receiver as a