Contents

Result.Publisher

The type of a Combine publisher that publishes this instance’s result to each subscriber exactly once, or fails immediately if the result indicates failure.

Declaration

struct Publisher

Overview

If the result is Swift/Result/success, then the publisher waits until it receives a request for at least one value, then sends the output to all subscribers and finishes normally. If the result is /Swift/Result/failure, then the publisher sends the failure immediately upon subscription. This latter behavior is a contrast with Just, which always publishes a single value.

Topics

Creating a Result Publisher

Inspecting Publisher Properties

Instance Methods

See Also

Publishing a Result