A Combine publisher that publishes a result and then finishes normally, or fails without publishing any elements.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
If result is
Result, then this publisher waits until it receives a request for at least one value before sending the output. If result is
Result, then this publisher sends the failure immediately upon subscription.
In contrast with
Just, a result publisher can terminate with an error instead of sending a value. In contrast with
Optional, a result publisher always sends one value, unless it terminates with an error.