Optional.Publisher
The type of a Combine publisher that publishes the value of a Swift optional instance to each subscriber exactly once, if the instance has any value at all.
Declaration
struct PublisherOverview
In contrast with the Just publisher, which always produces a single value, this publisher might not send any values and instead finish normally, if output is nil.
Topics
Declaring Publisher Topography
Creating an Optional Publisher
Inpsecting Publisher Properties
Working with Subscribers
Instance Methods
allSatisfy(_:)collect()compactMap(_:)contains(_:)contains(where:)count()drop(while:)dropFirst(_:)filter(_:)first()first(where:)ignoreOutput()last()last(where:)map(_:)max()max(by:)min()min(by:)output(at:)output(in:)prefix(_:)prefix(while:)reduce(_:_:)removeDuplicates()removeDuplicates(by:)replaceEmpty(with:)replaceError(with:)retry(_:)scan(_:_:)