Enumeration

Subscribers

A namespace for types that serve as subscribers.

Declaration

enum Subscribers

Topics

Requesting Elements

struct Subscribers.Demand

A requested number of items, sent to a publisher from a subscriber through the subscription.

Receiving Life Cycle Events

enum Subscribers.Completion

A signal that a publisher doesn’t produce additional elements, either due to normal completion or an error.

Using Convenience Subscribers

class Subscribers.Sink

A simple subscriber that requests an unlimited number of values upon subscription.

class Subscribers.Assign

A simple subscriber that assigns received elements to a property indicated by a key path.

See Also

Subscribers

protocol Subscriber

A protocol that declares a type that can receive input from a publisher.

Beta
struct AnySubscriber

A type-erasing subscriber.

Beta
protocol Subscription

A protocol representing the connection of a subscriber to a publisher.

Beta
enum Subscriptions

A namespace for symbols related to subscriptions.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software