Contents

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 Publisher

Overview

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

See Also

Publishing an Optional