SubscriptionToken
public protocol SubscriptionToken : AnyObject
Represents a subscription. When this object is released, the subscription is cancelled.
If reference is lost to this token, the subscription will be automatically cancelled on cleanup.
-
Cancel the subscription.
Declaration
Swift
func cancel()