A protocol representing the connection of a subscriber to a publisher.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Subscriptions are class constrained because a
Subscription has identity, defined by the moment in time a particular subscriber attached to a publisher. Canceling a
Subscription must be thread-safe.
You can only cancel a
Canceling a subscription frees up any resources previously allocated by attaching the